开发者

SQL Server Startup Parameters

开发者 https://www.devze.com 2023-01-07 22:41 出处:网络
How can i retrive 开发者_高级运维the SQL Server startup parameter using SQL Query?Check This. It might help you.

How can i retrive 开发者_高级运维the SQL Server startup parameter using SQL Query?


Check This. It might help you.

The lines below is of your interest.

$startupParameters = $wmiserver.Services['MSSQLSERVER'].StartupParameters # YMMV on the service name if you use named instances
        $mtlSetting = $startupParameters.split(';') | ? { $_.StartsWith('-g'

You can use CLR Stored proc to use WMI. Here is a tutorial.

0

精彩评论

暂无评论...
验证码 换一张
取 消