DECLARE @MSSqlService VARCHAR(50) EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE' ,N'SYSTEM\CurrentControlSet\Services\MSSQLSERVER' ,N'ObjectName' ,@MSSqlService OUTPUT ,N'no_output' SELECT @MSSqlService AS SQL_Service_Account
Post a Comment
No comments:
Post a Comment