摘要:
1、检测注册表只安装了sqlserver2000的时候,好办,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\CurrentVersion,这是key,用代码取到Value,搞定,具体代码可以google,下面贴的我也没试过,RegistryKey regkey = Registry.LocalMachine.OpenSubKey("SOFTWARE", true).OpenSubKey(@"Microsoft\MSSQLServer\MSSQLServer\CurrentVersion", true); if (regkey == nul 阅读全文