<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>草上飞 - sql server</title><link>http://blog.linkhelper.cn/</link><description>站长帮手网提供专业站长工具 - </description><generator>RainbowSoft Studio Z-Blog 1.8 Arwen Build 90619</generator><language>zh-CN</language><copyright>&amp;amp;copy; 2008 Designed By 草上飞 QQ:1469886&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;沪ICP备08014007号&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;Powered By Z-Blog</copyright><pubDate>Thu, 09 Sep 2010 12:20:03 +0800</pubDate><item><title>定时清除Sql server日志的必要性</title><author>addincaoy@163.com (草上飞)</author><link>http://blog.linkhelper.cn/post/clear-sql-log.html</link><pubDate>Tue, 22 Jun 2010 21:53:11 +0800</pubDate><guid>http://blog.linkhelper.cn/post/clear-sql-log.html</guid><description><![CDATA[<p>前几日有站长反应，论坛<a href="http://bbs.linkhelper.cn">http://bbs.linkhelper.cn</a>老是突然打不开，一直在加载状态。telnet 80端口畅通，证明IIS没有问题。<br />登陆到服务器上，也不能正常打开论坛。<br />重启IIS后，能短暂恢复正常，然后又马上不正常了。<br />根据以往经验分析，估计是因为数据库有死锁造成。运行p_lockinfo存储过程，发现果真有死锁。<br />发现dnt_stats表有死锁情况。开始以为是论坛的统计程序出现问题，网上搜索DZ 死锁，没找到解决办法。<br />...</p>]]></description><category>sql server</category><comments>http://blog.linkhelper.cn/post/clear-sql-log.html#comment</comments><wfw:comment>http://blog.linkhelper.cn/</wfw:comment><wfw:commentRss>http://blog.linkhelper.cn/feed.asp?cmt=73</wfw:commentRss><trackback:ping>http://blog.linkhelper.cn/cmd.asp?act=tb&amp;id=73&amp;key=40443fc2</trackback:ping></item><item><title>Sql server数据库优化20100330</title><author>addincaoy@163.com (草上飞)</author><link>http://blog.linkhelper.cn/post/sqlserver1.html</link><pubDate>Tue, 30 Mar 2010 15:35:36 +0800</pubDate><guid>http://blog.linkhelper.cn/post/sqlserver1.html</guid><description><![CDATA[<p>最近发现数据库服务器压力很大，CPU经常达到100%。查看进程，发现有大量的sp_cursorclose;1进程信息。<br />网上查了下，出现sp_cursorclose;1一般是因为客户端代码中用到了游标所造成。<br />仔细检查了下站长帮手网的代码，发现所有的数据库打开方式都是rs.open sql,conn,1,1<br />其实代码中将查询出来并不需要分页，记录集也不需要向后滚动。于是将数据库打开方式改为rs.open sql,conn,0,1<br />0,1表示是只读的记录。效率是最快的。使用这种方法打开数据库后，发现sp_cursorclose;1出现大幅的减少。<br />...</p>]]></description><category>sql server</category><comments>http://blog.linkhelper.cn/post/sqlserver1.html#comment</comments><wfw:comment>http://blog.linkhelper.cn/</wfw:comment><wfw:commentRss>http://blog.linkhelper.cn/feed.asp?cmt=57</wfw:commentRss><trackback:ping>http://blog.linkhelper.cn/cmd.asp?act=tb&amp;id=57&amp;key=3ae6acaa</trackback:ping></item></channel></rss>
