Discover our Clipsal Smart Home packages as seen on The Block 2018

in location

OR

I'm looking for

  • Wholesalers
    • Uncheck All Check All
  • EXPERTISE
    • Expand
    • Expand
    • Expand
    • Uncheck All Check All
  • Switchboard Manufacturers
    • Uncheck All Check All
OR

The best way to see what Clipsal electric products can do for your home is seeing them in action at a Clipsal Display Centre.

Product stock may vary according to location. If you're after a specific product range, please check with your chosen location before visiting.

10 Results
    Load More Load Complete
    Change Location

    Script to find SQL Server service account

    Issue
    How to quickly find the account which the SQL Server service is configured using a SQL query.

    Product Line
    Struxureware Power Monitoring 7.0.x
    Power Monitoring Expert 7.2.x, 8.x
    ION Enterprise 6.0. x
    ION EEM

    Environment
    SQL Server 2005, SQL Server 2008 R 2, SQL Server 2012, SQL Server 2014, SQL Server 2016

    Cause
    SQL Server needs to be configured with an account with the correct permissions.

    Resolution
    *Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.*

    SQL Server service account information can be fetched from registry or from sys.dm_server_services for versions
    starting from SQL Server 2008 R2 SP1 and above. This following script returns SQL Server service account.

    To retrieve the service account of current SQL Server installation from the registry. execute below query:

    DECLARE @DatabaseEngineAccount VARCHAR(100)
    DECLARE @SQLAgentAccount VARCHAR(100)

    EXECUTE Xp_instance_regread
      @rootkey = N'HKEY_LOCAL_MACHINE',
      @key = N'SYSTEM\CurrentControlSet\Services\MSSQLServer',
      @value_name = N'ObjectName',
      @value = @DatabaseEngineAccount output

    EXECUTE Xp_instance_regread
      @rootkey = N'HKEY_LOCAL_MACHINE',
      @key = N'SYSTEM\CurrentControlSet\Services\SQLServerAgent',
      @value_name = N'ObjectName',
      @value = @SQLAgentAccount output

    SELECT @@SERVERNAME           AS SQLInstance,
                 @DatabaseEngineAccount AS DatabaseEngineServiceAccount,
                 @SQLAgentAccount       AS SQLAgentServiceAccount

    Another method is to query sys.dm_server_services view. This gives the details for all installed SQL Server instances.
    It is available from SQL Server 2008 R2 SP1.
     

    Didn’t find what you were looking for?

    Try Searching Again View Our Categories

    Need further assistance?

    Our Customer Care department provides total customer service solutions for our residential, industrial and commercial applications.

    Get Assistance