随笔 - 314  文章 - 1 评论 - 127 阅读 - 135万
< 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

08 2013 档案
SqlServer强制断开数据库已有连接的方法(转)
摘要:在master数据库中执行如下代码declare @i INT declare cur cursor for select spid from sysprocesses where db_name(dbid)= ''Your_Database_Name' open cur fetch next from cur into @i while @@fetch_status=0 begin exec('kill '+@i) fetch next from cur into @i end close cur deallocate cur 阅读全文
posted @ 2013-08-23 09:14 garfieldtom 阅读(3066) 评论(0) 推荐(0) 编辑
cxGrid显示行号
摘要:定义一个类:TMyCxGrid = class(TObject) class procedure DrawIndicatorCell( Sender: TcxGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxCustomGridIndicatorItemViewInfo; var ADone: Boolean); end;class procedure TMyCxGrid.DrawIndicatorCell(Sender: TcxGridTableView; ACanvas: TcxCanvas; AViewInfo: Tcx... 阅读全文
posted @ 2013-08-05 16:34 garfieldtom 阅读(1754) 评论(0) 推荐(0) 编辑

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