34,576
社区成员
发帖
与我相关
我的任务
分享
--查询分析器中的写法
--设置身份验证模式为"仅windows"
exec master..xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\MSSQLServer', 'LoginMode', N'REG_DWORD', 1
--设置身份验证模式为"sql server和windows"
exec master..xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\MSSQLServer', 'LoginMode', N'REG_DWORD', 2