随笔 - 229  文章 - 2  评论 - 511  阅读 - 84万
07 2010 档案
dbo.fn_trace_gettable
摘要:通过trace track了所有的sqlserver操作,目前有一个存储过程被阻塞了3分钟,并且给出其中的一个offending的sql语句.可以查询select * from dbo.fn_trace_gettable ('\\xxx.trc' ,x)where textdata like '%xxx%'得到相应语句的transactionid,因为在一个长事物中,执行的语句不断变化,所以通过s... 阅读全文
posted @ 2010-07-23 10:18 stswordman 编辑
extended property
摘要:[代码]createschemaschema1goselect*fromsys.extended_propertieswheremajor_id=schema_id('schema1')go--createanextentedpropertyforschema1EXECsp_addextendedproperty@name=N'schemaDescription',@value='thisissc... 阅读全文
posted @ 2010-07-21 09:58 stswordman 阅读(372) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示