摘要:
static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { try { //设置应用程序处理异常方式:ThreadException处理 Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); //处理UI线程异常 Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Applicatio... 阅读全文
摘要:
USEmastergoCREATEPROCEDURE[dbo].[sp_who_lock]ASBEGINDECLARE@spidINT,@blINT,@intTransactionCountOnEntryINT,@intRowcountINT,@intCountPropertiesINT,@intCounterINTCREATETABLE#tmp_lock_who(idINTIDENTITY(1,1),spidSMALLINT,blSMALLINT)IF@@ERROR0RETURN@@ERRORINSERTINTO#tmp_lock_who(spid,bl)SELECT0,blockedFR. 阅读全文