摘要: 查找锁住的表已经相关的进程 select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_lockswhere resource_type = 'O 阅读全文
posted @ 2020-09-25 15:11 紫藤球球 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 查看被锁表:select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' spid 锁表进 阅读全文
posted @ 2020-07-13 09:47 紫藤球球 阅读(564) 评论(0) 推荐(0) 编辑
摘要: class job1:IJob { async Task IJob.Execute(IJobExecutionContext context) { await Console.Out.WriteLineAsync("作业执行1!"); //await new Task(() => { // Cons 阅读全文
posted @ 2019-08-16 16:24 紫藤球球 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 1、创建线程(全局) private Thread LookPictureThread; 2 创建启动线程的方法 (放在一起方便管理) private void StartThread() { if (LookPictureThread == null) { LookPictureThread = 阅读全文
posted @ 2019-04-29 11:11 紫藤球球 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、创建委托 private delegate void AddImageToPicturboxCallBack(string imageAddress); 2、 创建委托的方法 private void AddImageToPicturbox(string imageAddree) { if (p 阅读全文
posted @ 2019-04-29 11:09 紫藤球球 阅读(274) 评论(0) 推荐(0) 编辑
摘要: private void treeList1_GetNodeDisplayValue(object sender, GetNodeDisplayValueEventArgs e) { if (e.Column.FieldName == "State") { if (Convert.ToString( 阅读全文
posted @ 2019-04-16 16:57 紫藤球球 阅读(541) 评论(0) 推荐(0) 编辑
摘要: const int WM_SYSCOMMAND = 0x112; const int SC_CLOSE = 0xF060; const int SC_MINIMIZE = 0xF020; const int SC_MAXIMIZE = 0xF030; protected override void 阅读全文
posted @ 2019-04-16 09:43 紫藤球球 阅读(961) 评论(0) 推荐(0) 编辑