Submit a ticketCall us

Don’t fall victim to a ransomware attack
Backups are helpful, but sometimes that’s not enough to protect your business against ransomware. At our live webcast we will discuss how to protect against ransomware attacks with SolarWinds® Patch Manager and how to leverage log data to detect ransomware. Register now for our live webcast.

Home > Success Center > Database Performance Analyzer (DPA) > Recreate the DPA monitoring user for SQL Server

Recreate the DPA monitoring user for SQL Server

Table of contents
No headers
Created by Interspire Import, last modified by MindTouch on Jun 23, 2016

Views: 77 Votes: 1 Revisions: 11

If you deleted or lost the SQL Server user that DPA uses for monitoring a SQL Server database instance, follow these steps to recreate the user with proper rights and privileges:

  1. Connect as a SYSADMIN user to the monitored database.
  2. Replace username and password in the script below with the credentials that were deleted.
  3. Run the script:
    --Create DPA login
    
    CREATE LOGIN [username] WITH
      PASSWORD=N'password',
      DEFAULT_DATABASE=[master],
      DEFAULT_LANGUAGE=[us_english],
      CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
    GO
    
    --Give SYSADMIN rights to the DPA user
    EXEC sys.sp_addsrvrolemember @loginame = N'username', @rolename = N'sysadmin'
    GO
Last modified
19:17, 22 Jun 2016

Tags

Classifications

Public