Scripts from SQL Domian Accounts

  • hi,

    i need sql script which will give the domain account services accounts should be used.

    Thanks

    Arjun

  • Hi ,

    Try to use the below script

    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

    Regards,
    Kumar

Viewing 2 posts - 1 through 1 (of 1 total)

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