??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲人成色7777在线观看,亚洲日产2021三区,亚洲a级在线观看http://m.tkk7.com/hgq0011/category/2989.html单的事情重复做,׃(x)产生累积效应Q?/description>zh-cnTue, 20 Mar 2007 07:10:18 GMTTue, 20 Mar 2007 07:10:18 GMT60CPU使用率不高,内存怎么使用率也不高Q但pȝ假死?/title><link>http://m.tkk7.com/hgq0011/archive/2007/03/19/104771.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Mon, 19 Mar 2007 09:20:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2007/03/19/104771.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/104771.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2007/03/19/104771.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/104771.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/104771.html</trackback:ping><description><![CDATA[ 在一个企业中待两q多?jin),遇到各种问题Q很多都没有l验Q只能考自己去摸烦(ch)? 现在又遇C个问题,在IBM刀片服务器上面Q?G的内存,sql server大概使用?G左右 升不上M(jin)Q但是公怋用的pȝ的大q发使用的时候,出现假ȝ现象Q整个系l? ׃能用了(jin)QCPU使用率也?0Q左叟뀂这问题可郁闷呀Q又物理资源不能够用刎ͼpȝ 有出现问题。找?jin)很久也没有扑ֈ问题的所在,E序应该问题不大Q应该^旉用的好好的, 最多在大ƈ发时Q处理的不够好。那到底是ؓ(f)什么呢Q我们怀疑和操作pȝ有关Q然后,我们 开始找相关的资料,一个同事在SQL SERVER的文上扑ֈ?jin)问题所在,下面是从SQL SERVER 中摘录的: SQL Server 2000 企业版在 Windows 2000 Advanced Server 上可讉K大约 8 GB 内存Q? ?Windows 2000 Data Center 上可讉K大约 64 GB 的内存。标?32 位地址最多可映射 4 GB 的内存。因?32 ?Microsoft Windows NT? 4.0 ?Windows 2000 q程的标准地址I间限制? 4 GB。默认情况下Qؓ(f)操作pȝ留出 2 GB 的地址I间Q且?2 GB 可供应用E序使用? 哦,原来问题是不同的操作pȝQ不同数据库?x)有不同功能Q限制一些资源。看来还是要多思? 多实际,q样才能获得更多的经验? <img src ="http://m.tkk7.com/hgq0011/aggbug/104771.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2007-03-19 17:20 <a href="http://m.tkk7.com/hgq0011/archive/2007/03/19/104771.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>?IDENTITY_INSERT 讄?OFF Ӟ不能向表 中的标识列插入显式倹{?/title><link>http://m.tkk7.com/hgq0011/archive/2006/10/30/77979.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Mon, 30 Oct 2006 02:07:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2006/10/30/77979.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/77979.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2006/10/30/77979.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/77979.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/77979.html</trackback:ping><description><![CDATA["?IDENTITY_INSERT 讄?OFF Ӟ不能向表  中的标识列插入显式倹{?表示当表的关键子讄动生?那么你不能对它修?<img src ="http://m.tkk7.com/hgq0011/aggbug/77979.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2006-10-30 10:07 <a href="http://m.tkk7.com/hgq0011/archive/2006/10/30/77979.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SQL Server 不存在或拒绝讉Khttp://m.tkk7.com/hgq0011/archive/2006/10/03/73280.htmlHarrysonHarrysonTue, 03 Oct 2006 06:28:00 GMThttp://m.tkk7.com/hgq0011/archive/2006/10/03/73280.htmlhttp://m.tkk7.com/hgq0011/comments/73280.htmlhttp://m.tkk7.com/hgq0011/archive/2006/10/03/73280.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/73280.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/73280.htmlSQL Server 不存在或拒绝讉K"看来是不能访问到服务器了(jin).我一个GOOGLE,原来问题q比较隐?
http://tech.ccidnet.com/pub/article/c1099_a214511_p1.html按照q篇文章的介l?我认真的(g)查了(jin)机器和网l?最后发现是防火墙在搞鬼.所?q是要多实际,才能发现问题,解决问题.


Harryson 2006-10-03 14:28 发表评论
]]>
寚w接的服务器运行分布式事务处理时出现错?/title><link>http://m.tkk7.com/hgq0011/archive/2006/05/10/45361.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Wed, 10 May 2006 02:13:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2006/05/10/45361.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/45361.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2006/05/10/45361.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/45361.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/45361.html</trackback:ping><description><![CDATA[          q行E序出现?jin)如下的错?<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">      java sql SQLException: </span><span style="COLOR: #ff0000">[</span><span style="COLOR: #ff0000">Microsoft</span><span style="COLOR: #ff0000">][</span><span style="COLOR: #ff0000">SQLServer 2000 Driver for JDBC</span><span style="COLOR: #ff0000">][</span><span style="COLOR: #ff0000">SQLServer</span><span style="COLOR: #ff0000">]</span><span style="COLOR: #000000">The operation could </span><span style="COLOR: #808080">not</span><span style="COLOR: #000000"> be performed because the OLE DB provider </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">SQLOLEDB</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000"> was unable </span><span style="COLOR: #0000ff">to</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">begin</span><span style="COLOR: #000000"> a </span><span style="COLOR: #0000ff">distributed</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">transaction</span><span style="COLOR: #000000"> </span></div>        仔细的分析了(jin)E序,因ؓ(f)我在E序中用?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">con.setAutoCommit(</span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">);<br />    .........<br />   con.commit();</span></div>而在中间我调用了(jin)一个视?q个视图q程讉K?jin)另一个数据库,然后调用的时候就出现?jin)上面所描叙的问?但实际上在我q边试的时候没有问?是在用户那Ҏ(gu)问题,可能他们那边的环境不一样吧.<br />在网上找?jin)相关的文?<br />   1)http://support.microsoft.com/?scid=kb;zh-cn;329332&spid=2852&sid=318<br />    2)http://www.cnxuexi.com/computer/chengxusheji/shujuku/4373.html<br />解决的办?<br />   1)L那个视图,用其它的办法获取相关的数?br />    2)调用视图的代码不攑֜事务?<br />    3)试相关的环?可能讄有问?    <br />那位有更好的办法一定要告诉?谢谢!<br /><img src ="http://m.tkk7.com/hgq0011/aggbug/45361.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2006-05-10 10:13 <a href="http://m.tkk7.com/hgq0011/archive/2006/05/10/45361.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>error,怎样增加''tempdb'的空?http://m.tkk7.com/hgq0011/archive/2006/04/21/42327.htmlHarrysonHarrysonFri, 21 Apr 2006 07:23:00 GMThttp://m.tkk7.com/hgq0011/archive/2006/04/21/42327.htmlhttp://m.tkk7.com/hgq0011/comments/42327.htmlhttp://m.tkk7.com/hgq0011/archive/2006/04/21/42327.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/42327.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/42327.html java.sql.SQLException: [Microsoft][SQLServer  2000  Driver  for  JDBC][SQLServer]?br />能ؓ(f)数据库?/span> ' tempdb '  分配新页。在文gl DEFAULT 中已没有更多的页可供使用。采取除
d象、添加另外的文g或允许文件增长等手段可创建空间?/span>

Harryson 2006-04-21 15:23 发表评论
]]>
"无法解决 equal to 操作的排序规则冲H??http://m.tkk7.com/hgq0011/archive/2006/02/14/30627.htmlHarrysonHarrysonTue, 14 Feb 2006 08:08:00 GMThttp://m.tkk7.com/hgq0011/archive/2006/02/14/30627.htmlhttp://m.tkk7.com/hgq0011/comments/30627.htmlhttp://m.tkk7.com/hgq0011/archive/2006/02/14/30627.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/30627.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/30627.html无法解决 equal to 操作的排序规则冲H?FONT size=1>"
   在网上google原来是排序规则在倒蛋.
   资料:
    http://www.cublog.cn/opera/showart.php?blogid=8707&id=59268
    http://support.microsoft.com/default.aspx?scid=kb%3Bzh-cn%3B325335#XSLTH4185121121120121120120


Harryson 2006-02-14 16:08 发表评论
]]>
Error establishing socket????http://m.tkk7.com/hgq0011/archive/2006/02/08/29871.htmlHarrysonHarrysonWed, 08 Feb 2006 00:54:00 GMThttp://m.tkk7.com/hgq0011/archive/2006/02/08/29871.htmlhttp://m.tkk7.com/hgq0011/comments/29871.htmlhttp://m.tkk7.com/hgq0011/archive/2006/02/08/29871.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/29871.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/29871.html启动服务出现如下错误Q?/P>
WARN - JDBCExceptionReporter.logExceptions(71| SQL Error: 0, SQLState: null
ERROR 
- JDBCExceptionReporter.logExceptions(72| Cannot create PoolableConnecti
onFactory (
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
)
WARN 
- SettingsFactory.buildSettings(103| Could not obtain connection metadata

org.apache.commons.dbcp.SQLNestedException: Cannot 
create PoolableConnectionFact
ory (
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:
855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:
540)
        at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
getConnection(LocalDataSourceConnectionProvider.java:
80)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
72)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:
1463
)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:
1004)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
Factory(LocalSessionFactoryBean.java:
746)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPrope
rtiesSet(LocalSessionFactoryBean.java:
673)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
962)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:
354)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:
223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:
147)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:
176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:
105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:
916)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:
727)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:
336)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:
223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:
147)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:
176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:
105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:
916)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:
727)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:
336)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:
223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:
147)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:
271)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:
312)
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:
134)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:230)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:
156)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:
48)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:
3805)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:
4
321)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:
823)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
80
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
595)

        at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:
277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:
832)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:
687)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
432
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:
968)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:
349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:
119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1091)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:
789)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1083)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
478
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:
4
76)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:
231
3)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:
556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:
39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:
585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
284)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
422)
Caused 
by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Err
or establishing socket.
        at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        at com.microsoft.jdbc.sqlserver.tds.TDSConnection.
<init>(Unknown Source)

        at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.
open(Unknown Sou
rce)
        at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S
ource)
        at com.microsoft.jdbc.base.BaseConnection.
open(Unknown Source)
        at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv
erConnectionFactory.java:
37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java:
290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
icDataSource.java:
877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:
851)
         
56 more

解决Ҏ(gu)Q?BR>     1Q?A >http://dev.csdn.net/article/70/70360.shtm
      2Q重新启动机?BR>

Harryson 2006-02-08 08:54 发表评论
]]>
[转蝲]SQL q程的性能: 提示和技?/title><link>http://m.tkk7.com/hgq0011/archive/2006/01/24/29075.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 24 Jan 2006 02:35:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2006/01/24/29075.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/29075.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2006/01/24/29075.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/29075.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/29075.html</trackback:ping><description><![CDATA[<A >http://www-128.ibm.com/developerworks/cn/db2/library/techarticles/0306arocena/0306arocena.html</A><img src ="http://m.tkk7.com/hgq0011/aggbug/29075.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2006-01-24 10:35 <a href="http://m.tkk7.com/hgq0011/archive/2006/01/24/29075.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>sql server备䆾数据?/title><link>http://m.tkk7.com/hgq0011/archive/2006/01/11/27546.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Wed, 11 Jan 2006 03:11:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2006/01/11/27546.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/27546.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2006/01/11/27546.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/27546.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/27546.html</trackback:ping><description><![CDATA[      数据是企业的重要信息,可能也是商业机密.所以我们一定要?qing)时的作好备?保重数据的安?<BR>下面是设计了(jin)一个存储过E来备䆾数据.如果要实现自动的备䆾你可以执行一个Q务来自动的处?<BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">CREATE</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">procedure</SPAN><SPAN style="COLOR: #000000"> AutoBackupDataBase<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">WITH ENCRYPTION  加密</SPAN><SPAN style="COLOR: #008080"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">Begin</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">8</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_d</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">8</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_DB</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">100</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_DB_d</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">100</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_LOG</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">50</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">Declare</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@StrPath</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">50</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Name</SPAN><SPAN style="COLOR: #000000"> sysname<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #ff00ff">convert</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">char</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">10</SPAN><SPAN style="COLOR: #000000">),</SPAN><SPAN style="COLOR: #ff00ff">getdate</SPAN><SPAN style="COLOR: #000000">(),</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">112</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_d</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #ff00ff">convert</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">char</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">10</SPAN><SPAN style="COLOR: #000000">),</SPAN><SPAN style="COLOR: #ff00ff">getdate</SPAN><SPAN style="COLOR: #000000">()</SPAN><SPAN style="COLOR: #808080">-</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">7</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">112</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@StrPath</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">  </SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">E:\BackupData\EveryDayBackup\</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000"> DBName </SPAN><SPAN style="COLOR: #0000ff">cursor</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">for</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">select</SPAN><SPAN style="COLOR: #000000"> Name </SPAN><SPAN style="COLOR: #0000ff">from</SPAN><SPAN style="COLOR: #000000"> master.dbo.sysdatabases </SPAN><SPAN style="COLOR: #0000ff">where</SPAN><SPAN style="COLOR: #000000"> name</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">DG_DB</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #808080">or</SPAN><SPAN style="COLOR: #000000"> name</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">HKbomdb</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000"> <BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">open</SPAN><SPAN style="COLOR: #000000"> DBName<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">FETCH</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">NEXT</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN><SPAN style="COLOR: #000000"> DBName </SPAN><SPAN style="COLOR: #0000ff">into</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Name</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">WHILE</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #008000">@@FETCH_STATUS</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">BEGIN</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">删除7天以前的备䆾</SPAN><SPAN style="COLOR: #008080"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_DB_d</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">del  </SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #008000">@StrPath</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #008000">@Name</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">_DB</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #008000">@Str_d</SPAN><SPAN style="COLOR: #000000"> <BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">print</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_DB_d</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">exec</SPAN><SPAN style="COLOR: #000000"> master..xp_cmdshell </SPAN><SPAN style="COLOR: #008000">@str_db_d</SPAN><SPAN style="COLOR: #000000">        <BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_DB</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #008000">@StrPath</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #008000">@Name</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">_DB</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #008000">@Str</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">set @Str_LOG =@StrPath+@Name+'_LOG'+@Str</SPAN><SPAN style="COLOR: #008080"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">BACKUP</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">DATABASE</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Name</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">TO</SPAN><SPAN style="COLOR: #000000">  </SPAN><SPAN style="COLOR: #0000ff">DISK</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Str_DB</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WITH</SPAN><SPAN style="COLOR: #000000">  NOINIT ,  NOUNLOAD ,  NAME </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000"> N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">所有数据库备䆾</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">,  NOSKIP ,  STATS </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">10</SPAN><SPAN style="COLOR: #000000">,  NOFORMAT<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>        </SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">BACKUP LOG bdm TO  DISK = @Str_LOG WITH  NOINIT ,  NOUNLOAD ,  NAME = N'所有数据库日志备䆾',  NOSKIP ,  STATS = 10,  NOFORMAT,  NO_TRUNCATE </SPAN><SPAN style="COLOR: #008080"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">FETCH</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">NEXT</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN><SPAN style="COLOR: #000000"> DBName </SPAN><SPAN style="COLOR: #0000ff">INTO</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@Name</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">END</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">CLOSE</SPAN><SPAN style="COLOR: #000000"> DBName<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">DEALLOCATE</SPAN><SPAN style="COLOR: #000000"> DBName<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">end</SPAN></DIV><img src ="http://m.tkk7.com/hgq0011/aggbug/27546.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2006-01-11 11:11 <a href="http://m.tkk7.com/hgq0011/archive/2006/01/11/27546.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>提高查询数据的性能历险?/title><link>http://m.tkk7.com/hgq0011/archive/2005/12/07/22875.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Wed, 07 Dec 2005 07:36:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2005/12/07/22875.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/22875.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2005/12/07/22875.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/22875.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/22875.html</trackback:ping><description><![CDATA[                                    提高查询数据的性能<BR>     我负责的那个目采用?jin)webwork + spring + hibernate 的架?用到?个数据库.现在已经正是使用?先庆(jin)一?IMG height=20 src="http://m.tkk7.com/Emoticons/QQ/47.gif" width=20 border=0>.用户反映速度很慢,说有时一个查询要{?0U左?妨碍?jin)他们的工?他们q么一?我就 开始找原因?我以为是用了(jin)hibernate引v?所以请教了(jin)我的朋友--waterYe. 问了(jin)他一些关于怎样优化hibernate.比如说用lazy load .可hibernate 3.0默认方式是lazy load.而且表间的关pL手工控制?(好像对字D也能lazy load,不过我还没有实践q?IMG height=19 src="http://m.tkk7.com/Emoticons/red_smile.gif" width=19 border=0>).然后我把配置文g发给他让他给我看?waterYe很快发C(jin)问题,他发现我没有使用数据库连接池(q个我一直到用了(jin),怎么可能没有?).原来我在appllicationContext-hibernate.xml文g中用?org.springframework.jdbc.datasource.DriverManagerDataSource"q个q没有提供连接池的功?q个是我没有注意到的.我是用equinox新徏的项?我以为它用了(jin)q接?以后学习(fn)q程中真要把它们吃?一定要知其所以然.最后我改用?jin)BasicDataSource.请参?A >http://www.is.pku.edu.cn/blog/?date=2004-12-29&id=2&m=display</A>  .Water Yer 我用WEB服务的JNDI的方式会(x)好些. 他还发现?jin)一个问题就是我把很多ArrayList{数据放在了(jin)session?其实我知道这样做肯定不好,可我不知到怎样把Action中的ArrayList的数据传的JSP面?<IMG height=19 src="http://m.tkk7.com/Emoticons/confused_smile.gif" width=19 border=0>所以就用了(jin)session) ,朋友我改成放到request?不知有没有更好的Ҏ(gu)<IMG height=20 src="http://m.tkk7.com/Emoticons/QQ/noidea.gif" width=20 border=0>).可修改完q些查询的性能没有明显的提?<IMG height=20 src="http://m.tkk7.com/Emoticons/QQ/noidea.gif" width=20 border=0><BR>      q个pȝ是一个比较重要的pȝ,Ҏ(gu)能要求比较?所以大安很重?所以我们的老大,也在为我想一些办?今天一上班,把我叫q去,一赯论数据库优化.其实我也有想到过数据库方面肯定也是媄(jing)响性能之一,q有是|络d.׃上星期五我就请假回家,旉非常紧张所以也没有忙过?<BR>    老大说可能把存储q程Ҏ(gu)视图可能?x)好?然后我俩把存储q程Ҏ(gu)?jin)视图来比较到底那个q行的速度?可我们发现改完的效果不是很明?差不?.׃q接?个数据库,而且他们的数据也很多,h处理的业务逻辑也很复杂,用到?个存储过E?老大又提?是不是创建烦(ch)引可能会(x)又效?我们又开始对所有表创徏索引(请参?A >http://www.vckbase.com/document/viewdoc/?id=1307</A>).果真查询的速度很快?客户也满意了(jin),当然我也非常的高?又解决了(jin)一个问?<BR>   所以遇到问题一定要从多斚w来考虑,仔细想一?多测?多找资料,怿问题一定有解决办法.<img src ="http://m.tkk7.com/hgq0011/aggbug/22875.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2005-12-07 15:36 <a href="http://m.tkk7.com/hgq0011/archive/2005/12/07/22875.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>sql一些常用的Ҏ(gu)http://m.tkk7.com/hgq0011/archive/2005/09/08/12442.htmlHarrysonHarrysonThu, 08 Sep 2005 08:26:00 GMThttp://m.tkk7.com/hgq0011/archive/2005/09/08/12442.htmlhttp://m.tkk7.com/hgq0011/comments/12442.htmlhttp://m.tkk7.com/hgq0011/archive/2005/09/08/12442.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/12442.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/12442.html阅读全文

Harryson 2005-09-08 16:26 发表评论
]]>
sql server 链接服务?/title><link>http://m.tkk7.com/hgq0011/archive/2005/09/06/12173.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 06 Sep 2005 01:53:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2005/09/06/12173.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/12173.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2005/09/06/12173.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/12173.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/12173.html</trackback:ping><description><![CDATA[<P><FONT face=宋体,sans-serif>sql server 链接服务? 创徏一个链接的服务器,使其允许对分布式的、针?OLE DB 数据源的异类查询q行讉KQ用来链接远E的数据库?</FONT></P> <P><FONT face=宋体,sans-serif>链接vfp数据据两U方式:(x)</FONT></P> <P><FONT face=宋体,sans-serif>   1Q?/P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #ff00ff">openrowset</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">MSDASQL</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">,<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top>             </SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">Driver=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=\\Files-              server\JM_MIS\Data\</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">|络目录</SPAN><SPAN style="COLOR: #008080"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">              </SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">select * from [PO.DBF]</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV> <P></FONT><FONT face=宋体>      2)使用链接服务?/FONT></P> <P><FONT face=宋体>     a)使用pȝ存储q程(sp_addlinkedserver)来添加链接服务器 </FONT></P> <P><FONT face=宋体>            EXEC sp_addlinkedserver <BR>                 <FONT face=新宋?<STRONG>@server</STRONG> = </FONT>'WF', //要创建的链接服务器的本地名称<BR>                <FONT face=新宋?<STRONG>@srvproduct</STRONG> = </FONT> '', //要添加ؓ(f)链接服务器的 OLE DB 数据源的产品名称<BR>                <STRONG>@provider =</STRONG> 'MSDASQL',//与此数据源相对应?OLE DB 提供E序的唯一E序标识W?(PROGID<BR>                <STRONG>@datasrc =</STRONG> 'product'//?OLE DB 提供E序解释的数据源名称</FONT></P> <P><FONT face=宋体>          b) 在”sql企业理?-->”sql serverl“-Q>”某个组员“-Q>”安全性“-Q>”链接服务器“来dQ删除)(j)链接服务?/FONT></P> <P><FONT face=宋体>            注意Q你必须d一个ODBCpȝ数据?prodcut).也许ODBC OLE DBQ驱动程序)(j)的方式不支持q程讉KQ它只对sql server本机查询Q更新v作用。当然只要你能用sql server能通过ODBC OLE DB链接到数据,那么你就能在sql SERVER中引用(select * from WF.product..po或者select * from OPENQUERY(WF, 'SELECT * FROM po')</FONT><FONT face=宋体>Q它的数据了(jin)?IMG src="http://www.blogdriver.com/jsp/face/47.gif"><BR></FONT></P><img src ="http://m.tkk7.com/hgq0011/aggbug/12173.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2005-09-06 09:53 <a href="http://m.tkk7.com/hgq0011/archive/2005/09/06/12173.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>sql server q程引用http://m.tkk7.com/hgq0011/archive/2005/09/06/12172.htmlHarrysonHarrysonTue, 06 Sep 2005 01:51:00 GMThttp://m.tkk7.com/hgq0011/archive/2005/09/06/12172.htmlhttp://m.tkk7.com/hgq0011/comments/12172.htmlhttp://m.tkk7.com/hgq0011/archive/2005/09/06/12172.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/12172.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/12172.html在sql server 中能q程查询更新数据(OPENDATASOURCE)

       不经怋用的数据可以用OPENDATASOURCE,openrowset{来引用Q如果数据经怋用那么你最好用链接服务来q行分布式查询更?IMG src="http://www.blogdriver.com/jsp/face/53.gif">

update OPENDATASOURCE(
          
'SQLOLEDB',
          
'Data Source = 192.168.1.6;User ID = sa;Password =test'
          ).test.dbo.orders 
set ship_to = 'asdfasdf' where order_no = 1

select * from OPENDATASOURCE(
          
'SQLOLEDB',
          
'Data Source = 192.168.1.6;User ID = sa;Password =test'
          ).test.dbo.orders  
where order_no = 1
delete from OPENDATASOURCE(
          
'SQLOLEDB',
          
'Data Source = 192.168.1.6;User ID = sa;Password =test'
          ).test.dbo.orders  
where order_no = 1


Harryson 2005-09-06 09:51 发表评论
]]>
生成唯一?/title><link>http://m.tkk7.com/hgq0011/archive/2005/09/06/12164.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 06 Sep 2005 01:32:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2005/09/06/12164.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/12164.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2005/09/06/12164.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/12164.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/12164.html</trackback:ping><description><![CDATA[<P>NEWID()创徏 <B>uniqueidentifier </B>cd的唯一倹{?BR></P> <P> </P> <DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid"> <DIV><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">DECLARE</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@myid</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">uniqueidentifier</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">SET</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #008000">@myid</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #ff00ff">NEWID</SPAN><SPAN style="COLOR: #000000">()<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">PRINT</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">Value of @myid is: </SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #ff00ff">CONVERT</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">255</SPAN><SPAN style="COLOR: #000000">), </SPAN><SPAN style="COLOR: #008000">@myid</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><img src ="http://m.tkk7.com/hgq0011/aggbug/12164.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2005-09-06 09:32 <a href="http://m.tkk7.com/hgq0011/archive/2005/09/06/12164.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>得到表的字段?/title><link>http://m.tkk7.com/hgq0011/archive/2005/09/06/12162.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 06 Sep 2005 01:31:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2005/09/06/12162.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/12162.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2005/09/06/12162.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/12162.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/12162.html</trackback:ping><description><![CDATA[<P><FONT size=2>SELECT  s.name ,s.colid FROM syscolumns as s WHERE id = object_id('t_test') </FONT></P> <P><FONT size=2>得到?t_test"的字D名</FONT></P><img src ="http://m.tkk7.com/hgq0011/aggbug/12162.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2005-09-06 09:31 <a href="http://m.tkk7.com/hgq0011/archive/2005/09/06/12162.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> sqlserver?sql~程的几个小?http://m.tkk7.com/hgq0011/archive/2005/09/06/12163.htmlHarrysonHarrysonTue, 06 Sep 2005 01:31:00 GMThttp://m.tkk7.com/hgq0011/archive/2005/09/06/12163.htmlhttp://m.tkk7.com/hgq0011/comments/12163.htmlhttp://m.tkk7.com/hgq0011/archive/2005/09/06/12163.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/12163.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/12163.html  sqlserver?sql~程的几个小?/STRONG>


   
1、取出刚刚插?删除)的数据SELECT 字段?FROM INSERTED(DELETED)
2、对于UPDATE实际上是先DELETE然后再INSERT所以如果想得到UPDATE前后的数据|应该先从DELETED取出Q然后从INSERTED取出Q?BR>3、IF UPDATE(列名)可以判断更新或插入哪一个字D늚|
4、@@ROWCOUNT可以判断上一行查询操作得到的列数Q?BR>5、给变量赋值用SET @ZQB = 13;
6、察看是否有W合条g的记录IF EXISTS (SELECT name FROM sysobjects WHERE name = 'reminder' AND type = 'TR');
7、定义游标,如下Q?BR>DECLARE c1 CURSOR FOR
SELECT emp_mgr.emp
FROM emp_mgr, inserted
WHERE emp_mgr.emp = inserted.mgr

OPEN c1
FETCH NEXT FROM c1 INTO @e--从游标中取出数据
WHILE @@fetch_status = 0--判断是否到最?BR>BEGIN
UPDATE emp_mgr
SET emp_mgr.NoOfReports = emp_mgr.NoOfReports + 1 -- Add 1 for newly
WHERE emp_mgr.emp = @e -- added employee.

FETCH NEXT FROM c1 INTO @e
END
CLOSE c1
DEALLOCATE c1--删除游标引用



Harryson 2005-09-06 09:31 发表评论
]]>
触发器-Q用来获取那写字D|?/title><link>http://m.tkk7.com/hgq0011/archive/2005/09/06/12161.html</link><dc:creator>Harryson</dc:creator><author>Harryson</author><pubDate>Tue, 06 Sep 2005 01:30:00 GMT</pubDate><guid>http://m.tkk7.com/hgq0011/archive/2005/09/06/12161.html</guid><wfw:comment>http://m.tkk7.com/hgq0011/comments/12161.html</wfw:comment><comments>http://m.tkk7.com/hgq0011/archive/2005/09/06/12161.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hgq0011/comments/commentRss/12161.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hgq0011/services/trackbacks/12161.html</trackback:ping><description><![CDATA[     摘要: 在网上找C(jin)一个类似的文章http://www.cnblogs.com/delphi/articles/121516.html来引用这文章.我在它的基础上加?jin)更详细注解。  如下Q?nbsp;          CREATE Table T_Test (f_id&nb...  <a href='http://m.tkk7.com/hgq0011/archive/2005/09/06/12161.html'>阅读全文</a><img src ="http://m.tkk7.com/hgq0011/aggbug/12161.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hgq0011/" target="_blank">Harryson</a> 2005-09-06 09:30 <a href="http://m.tkk7.com/hgq0011/archive/2005/09/06/12161.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MSDTCQOLE DB 出错http://m.tkk7.com/hgq0011/archive/2005/09/02/11798.htmlHarrysonHarrysonFri, 02 Sep 2005 00:46:00 GMThttp://m.tkk7.com/hgq0011/archive/2005/09/02/11798.htmlhttp://m.tkk7.com/hgq0011/comments/11798.htmlhttp://m.tkk7.com/hgq0011/archive/2005/09/02/11798.html#Feedback0http://m.tkk7.com/hgq0011/comments/commentRss/11798.htmlhttp://m.tkk7.com/hgq0011/services/trackbacks/11798.html 环境如下Q通过jdbc调用存储q程QprocedureQ,出现如下错误Q?BR> [SQLServer 2000 Driver for JDBC][SQLServer]服务?'FILES-SERVER' 上的 MSDTC 不可?BR> [SQLServer 2000 Driver for JDBC][SQLServer]该操作未能执行,因ؓ(f) OLE DB 提供E序'SQLOLEDB' 无法启动分布式事务?BR>因ؓ(f)在存储过E中调用?jin)如下的sqlҎ(gu)

 opendatasource('SQLOLEDB','Data Source = 192.168.1.1;User I(yng)D = sa;Password =psstone')
所以就出现?jin)上面的错误。因为存储过E调用的数据库其实是同一台服务器Q把我把opendatasourceҎ(gu)M(jin)Q调试通过。可我还是不明白(在ms sql的查询分析器中,执行此存储过E没有问题,可ؓ(f)什么通过JDBC调用׃(x)出现如上的错误?)?IMG height=20 src="http://m.tkk7.com/Emoticons/QQ/noidea.gif" width=20 border=0>假如真的是调用另一个服务器上的数据Q那怎么办呢Qo(w)pendatasourceҎ(gu)是通过链接服务来调用分布式事务Q调用另一台数据库服务获取数据Q,可能是因为OLE DB 提供E序'SQLOLEDB' 无法启动分布式事务,那么用什么样子的E序Q驱动程序)(j)能启动分布式事务呢?

 {把q个东东做完?jin),在来好好研究一下吧Q时间有限?IMG height=19 src="http://m.tkk7.com/Emoticons/red_smile.gif" width=19 border=0> 误?Q)(j)

下面是我扑ֈ的一些资料,http://community.csdn.net/Expert/topic/2889/2889213.xml
http://community.csdn.net/Expert/topic/2835/2835706.xml

Harryson 2005-09-02 08:46 发表评论
]]>
վ֩ģ壺 պaƵѲ| ޹˰av߲ | Ʒާѡ벥| þùƷ2020m3u8| йvideosԸ| 9ֻоƷ| 㽶һƵ߹ۿ| һŮѲ| ۺһ| С˵ͼƬQVOD| avר޹Ʒ| þֻоƷ10| 91ɫۺϾþѷ| ҳƵ߹ۿ| һ2342021ѹۿ| 99߾ƷƵۿ| baoyu122.Ƶ| ĻëƬѿ| ߾Ʒ| þþþùƷѿ| mvߵӰ| йͽxxxxxѿ| ֻˬִƵ| þþþƷҹѲ| պëƬƵѿ| ޾ƷAAƬ| ߹ۿ| avպۺһ| ޳߲va| EEUSSӰԺWWW߹ۿ| 99REþþƷﶼǾƷ| Ƶ߹ۿ| ߿ƬѲ˳Ƶ| ƷɫҹƵ| AVѲ| պһëƬ| ۺС˵ɫ| 337pŷ޴| ޳AƬ߹ۿWWW| þþþ޾Ʒ˵ | Կ60Ƶ|