SQL server service account

  • Is there a way I can find out what sql services account are used for a sql server without remote login to the computer, but just checked from my workstation sql server management studio?

    Thanks

  • SELECT servicename, startup_type_desc, status_desc,

    last_startup_time, service_account, is_clustered, cluster_nodename

    FROM sys.dm_server_services OPTION (RECOMPILE);

    From someone's performance script. I'll source it when I find it again.

    Edit: Found it! Mr. Glenn Berry's wonderful script[/url].

    ______________________________________________________________________________________________
    Forum posting etiquette.[/url] Get your answers faster.

  • Thanks, but I got Invalid object name 'sys.dm_server_service'.

  • sqlfriends (2/13/2012)


    Thanks, but I got Invalid object name 'sys.dm_server_service'.

    Add an s to make service services.

    Jared
    CE - Microsoft

  • sqlfriends (2/13/2012)


    Thanks, but I got Invalid object name 'sys.dm_server_service'.

    What version is your SQL Server instance, the script above is only valid for SQL Server 2008 R2 SP1 onwards. Get your version using

    select serverproperty('ProductVersion'), serverproperty('ProductLevel')

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • Thanks, most of our server are sql 2008, only one is R2,

    I tried on R2, it works. but not on sql server 2008, good to know.

    Thanks all

  • Does any one know what is this View name for SQL Server 2005??

Viewing 7 posts - 1 through 6 (of 6 total)

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