上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
  2010年1月5日
摘要: @echo dirrem-- @表示不出现,即执行dir命令,但并不现实dir这个命令本身两个百分号表示变量例如echo %path%rem 这个命令会输出环境变量set a=1echo %a%输出变量a的值%0 ,%1,%2,%3为系统变量,用于接收输入参数例如脚本 script1.bat@echo offset a=%1set b=%2set c=%3set d=%0set e=%*echo ... 阅读全文
posted @ 2010-01-05 08:43 stswordman 阅读(654) 评论(0) 推荐(0) 编辑
  2010年1月4日
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->--setupUSE MASTERGO-- Create the server auditCREA 阅读全文
posted @ 2010-01-04 18:08 stswordman 阅读(611) 评论(0) 推荐(0) 编辑
  2009年10月25日
摘要: T-SQL_Programming.zipQuerying.zipQuery_Tuning_and_Optimization.zipStorage.Engine.zip 阅读全文
posted @ 2009-10-25 14:39 stswordman 阅读(189) 评论(0) 推荐(0) 编辑
  2009年10月5日
摘要: #实例化对象,以SqlConnection为例子Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$con=new-object System.Data.Sqlclient.SqlConnection("server=.;uid=xxx;pwd=xxx")#引用静态方法 Using Static Classes and MethodsCode highlighting produced by Actipro CodeHigh 阅读全文
posted @ 2009-10-05 15:43 stswordman 阅读(2693) 评论(0) 推荐(0) 编辑
  2009年9月14日
摘要: Update lock并不是一种单独的锁,而是shared lock和exclusive lock的混合体。 当数据库执行更新(insert, update, delete)操作时,会去尝试获得update lock. 整个更新操作可以分为两步:1 定位需要更新的数据,2 执行更新操作. 定位数据的步骤就是数据搜索的过程,我们可以将其想像成select,这时sqlserver会去尝试获得shared lock, 如果第一步成功,就会进入第二个阶段时,去获得exclusive lock,将之前获得的update lock转化(convert)成exclusive lock. 由于update l 阅读全文
posted @ 2009-09-14 17:34 stswordman 阅读(2260) 评论(1) 推荐(0) 编辑
  2009年8月10日
摘要: Can we remove a single query plan?You can use sp_recompile system stored procedure to clear it if the type of query plan is proc,trigger or functionElse you can't. If the received parameter of sp_reco... 阅读全文
posted @ 2009-08-10 16:44 stswordman 阅读(325) 评论(0) 推荐(0) 编辑
  2009年8月3日
摘要: SET option make different compiled plan For specific sql test, it always has the same sql_handle, but it may not always have the same plan_handle. If the cache keys change, we'll get a new plan_handle in plan cache. The relationship between sql_handle and plan_handle is thus 1:N 阅读全文
posted @ 2009-08-03 11:26 stswordman 阅读(2414) 评论(0) 推荐(0) 编辑
  2009年6月14日
摘要: http://technet.microsoft.com/zh-cn/dd939047(zh-cn).aspx最近收到了一些关于收缩日志的问题:已经执行了backup log命令,但执行shrink命令后仍然无法将日志文件收缩到指定大小,日志文件根本没有收缩/只收缩了一部分执行dbcc loginfo命令,可能会有如下结果您的日志尾部的虚拟日志文件为2状态。当执行dbcc shrinkfile命令后,38,39位置的虚拟文件会被立刻收缩掉,由于37位置的虚拟文件为2(数据库日志文件至少由一个状态为2的虚拟日志文件),所以不会被收缩掉,sqlserver会在37位置处添加哑日志记录(dummy 阅读全文
posted @ 2009-06-14 11:07 stswordman 阅读(367) 评论(0) 推荐(0) 编辑
  2009年4月27日
摘要: http://technet.microsoft.com/zh-cn/dd793599.aspx[代码] 阅读全文
posted @ 2009-04-27 16:13 stswordman 阅读(3433) 评论(0) 推荐(0) 编辑
  2009年4月14日
摘要: This post was published to stswordman at 6:09:31 PM 4/14/2009 table scan against heap with forward pointer Sql server维护了一个内部指针,它指向了表的第一个IAM页,还有一个执行表的首页的内部指针对一个表(heap)执行table scan时,sql server会按照IAM顺序查找... 阅读全文
posted @ 2009-04-14 18:18 stswordman 阅读(474) 评论(2) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页