【发布时间】:2018-09-20 16:55:13
【问题描述】:
在 Microsoft SQL Server Management Studio 中,可以选择右键单击服务器以访问:服务器属性 - 安全
在新的 SQL Operations Studio 中相当于什么?
谢谢。
【问题讨论】:
标签: tsql sql-operations-studio
在 Microsoft SQL Server Management Studio 中,可以选择右键单击服务器以访问:服务器属性 - 安全
在新的 SQL Operations Studio 中相当于什么?
谢谢。
【问题讨论】:
标签: tsql sql-operations-studio
这并没有完全回答问题,但这里是。
服务器属性 -> 安全性是通过查询 Windows 注册表生成的。没有简单的方法可以将其从系统中查询出来。
你可以使用
exec master.dbo.xp_regread
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\Setup',
N'SQLPath',
@dir output
select @dir
exec master.dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\Setup',
N'SQLPath',
@dir output
select @dir
问题是,您必须知道N'HKEY_LOCAL_MACHINE', 的哪个位置才能找到您要查找的内容。
此答案基于:Differences between xp_instance_RegRead and xp_RegRead
【讨论】: