摘要:
1.首先,必须导入空间"Microsoft.Win32"2.利用Registry类,确定注册表的分支(ClassesRoot,CurrentUser,Users,LocalMachine,CurrentConfig)using Microsoft.Win32;RegistryKey key = Registry.LocalMachine;3.创建/打开/删除注册表项RegistryKey key = Registry.LocalMachine;//创建//注意:注册表路径一定是"\\"而不是"\"RegistryKey softwar 阅读全文
摘要:
CREATE procedure sp_who_lock as begin declare @spid int declare @blk int declare @count int declare @index int declare @lock tinyint set @lock=0 create table #temp_who_lock ( id int identity(1,1), spid int, blk int ) if @@error<>0 return @@error insert into #temp_who_lock(spid,blk) select 0 ,b 阅读全文