Submit a ticketCall us

AnnouncementsTHWACKcamp 2018 is here

2018 is the seventh year for THWACKcamp™, and once again we’ll be live October 17 – 18 with packed session tracks covering everything from network monitoring and management, to change control, application management, storage, cloud and DevOps, security, automation, virtualization, mapping, logging, and more.

Register for online sessions.

Home > Success Center > Database Performance Analyzer (DPA) > DPA - Knowledgebase Articles > 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: 1,274 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

Tags

Classifications

Public