How to find SQL Server account name ?

  • Hi,

    I need to find account name that SQL Server instance is installed. Is it possible ?

    Thanks

  • You could use the SQL Server Configuration Manager

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • Installed or running?

  • Try this,

    DECLARE @ServiceaccountName VARCHAR(250)

    EXECUTE master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',

    N'SYSTEM\CurrentControlSet\Services\MSSQLSERVER', N'ObjectName',

    @ServiceAccountName OUTPUT, N'no_output'

    SELECT @ServiceaccountName

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply