Sqlserver

posted @ 2009-05-15 17:42 roboth 阅读(209) | 评论 (0) 编辑
摘要: exec灵活运用。阅读全文
posted @ 2009-04-27 15:23 roboth 阅读(36) | 评论 (0) 编辑
摘要: Remember that triggers are fired per statement, not per row.阅读全文
posted @ 2008-12-09 14:15 roboth 阅读(174) | 评论 (0) 编辑
摘要: NEWID(),CHECKSUM,WHILE,IGNORE_DUP_KEY阅读全文
posted @ 2008-11-24 09:57 roboth 阅读(88) | 评论 (0) 编辑
摘要: 最近总想整理下对MSSQL的一些理解与感悟,却一直没有心思和时间写,晚上无事便写了一篇探索MSSQL执行计划,本文讲执行计划但不仅限于讲执行计划。 网上的SQL优化的文章实在是很多,说实在的,我也曾经到处找这样的文章,什么不要使用IN了,什么OR了,什么AND了,很多很多,还有很多人拿出仅几S甚至几MS的时间差的例子来证明着什么(有点可笑),让许多人不知道其是对还是错。而SQL优化又是每个要与数据库打交道的程序员的必修课,所以写了此文,与朋友们共勉。 谈到优化就必然要涉及索引,就像要讲锁必然要说事务一样,所以你需要了解一下索引,仅仅是索引,就能讲半天了,所以索引我就不说了(打很多字是很累的,况且我也知之甚少),可以去参考相关的文章,这个网上资料比较多了。 今天来探索下MSSQL的执行计划,来让大家知道如何查看MSSQL的优化机制,以此来优化SQL查询。阅读全文
posted @ 2008-11-12 14:12 roboth 阅读(276) | 评论 (0) 编辑
摘要: 特殊存储过程(使用sp_前缀,在master中创建)也被标记为系统存储过程,并具备另外一些独特的行为。当SQL Server的安装程序运行安装脚本以创建系统存储过程时,安装脚本使用未公开的存储过程sp_MS_marksystemobject把这些存储过程标记为系统存储过程阅读全文
posted @ 2008-11-12 10:43 roboth 阅读(164) | 评论 (0) 编辑
摘要: UDP可以用到查询、约束、计算列上!阅读全文
posted @ 2008-11-05 18:13 roboth 阅读(26) | 评论 (0) 编辑
摘要: 您也串联串联?阅读全文
posted @ 2008-11-05 17:19 roboth 阅读(133) | 评论 (4) 编辑
摘要: csdn混的,不应该不 会阅读全文
posted @ 2008-10-27 09:59 roboth 阅读(57) | 评论 (0) 编辑
摘要: 一个触发器的例子阅读全文
posted @ 2008-09-28 15:11 roboth 阅读(156) | 评论 (0) 编辑
摘要: 索引的维护阅读全文
posted @ 2008-09-28 13:53 roboth 阅读(104) | 评论 (0) 编辑
摘要: 临时表的作用~。、。~阅读全文
posted @ 2008-09-03 14:16 roboth 阅读(120) | 评论 (0) 编辑
摘要: sqlserver之判断对象是否存在阅读全文
posted @ 2008-08-22 15:15 roboth 阅读(106) | 评论 (0) 编辑
摘要: 很不错。 阅读全文
posted @ 2008-08-21 14:35 roboth 阅读(148) | 评论 (0) 编辑
摘要: 事务系列1阅读全文
posted @ 2008-08-21 14:25 roboth 阅读(88) | 评论 (0) 编辑
摘要: 您知道吗?阅读全文
posted @ 2008-08-21 09:54 roboth 阅读(123) | 评论 (0) 编辑
摘要: 肥羊的MSSQL详解阅读全文
posted @ 2008-08-20 17:25 roboth 阅读(215) | 评论 (0) 编辑
摘要: backup 阅读全文
posted @ 2008-08-18 10:07 roboth 阅读(527) | 评论 (3) 编辑
摘要: 容易混淆的东东.阅读全文
posted @ 2008-08-07 16:59 roboth 阅读(112) | 评论 (1) 编辑
摘要: 如果您不知道,就看看吧。阅读全文
posted @ 2008-08-06 16:01 roboth 阅读(141) | 评论 (0) 编辑
摘要: 利用@@ROWCOUNT和Depth实现该功能。阅读全文
posted @ 2008-06-14 18:44 roboth 阅读(169) | 评论 (0) 编辑
摘要: 一个通用且有用的Split函数
阅读全文
posted @ 2008-03-15 20:12 roboth 阅读(202) | 评论 (0) 编辑
摘要: 小东东~~阅读全文
posted @ 2008-03-15 19:19 roboth 阅读(190) | 评论 (0) 编辑
posted @ 2008-03-13 11:52 roboth 阅读(24) | 评论 (0) 编辑
摘要: 众所周知,索引可以提高查询性能,但是也不能乱用。要衡量得与失后再做定夺阅读全文
posted @ 2008-03-12 10:23 roboth 阅读(63) | 评论 (0) 编辑
摘要: 一个查询问题阅读全文
posted @ 2007-11-24 15:37 roboth 阅读(181) | 评论 (1) 编辑
摘要: 查看 http://www.leadbbs.com/a/a.asp?B=205&ID=2676960阅读全文
posted @ 2007-09-26 14:44 roboth 阅读(89) | 评论 (0) 编辑
摘要: 一个csdn问题的解决方案
http://community.csdn.net/Expert/topic/5764/5764435.xml?temp=.4362909阅读全文
posted @ 2007-09-19 13:00 roboth 阅读(184) | 评论 (3) 编辑
摘要: 关于:以前的某个程序安装已在安装计算机上创建挂起的文件操作 解决办法阅读全文
posted @ 2007-08-28 10:36 roboth 阅读(211) | 评论 (0) 编辑
摘要: select @@Version阅读全文
posted @ 2007-08-06 10:15 roboth 阅读(215) | 评论 (1) 编辑
摘要: SqlServer死锁检查阅读全文
posted @ 2007-08-03 17:47 roboth 阅读(236) | 评论 (1) 编辑