Submit a ticketCall us

WebinarUpcoming Webinar: Should I Move My Database to the Cloud?

So you’ve been running an on-premises SQL Server® for a while now. Maybe you’ve moved it from bare metal to a VM, and have seen some positive benefits. But, do you want to see more? If you said “YES!”, then this session is for you, as James Serra will review the many benefits that can be gained by moving your on-prem SQL Server to an Azure® VM (IaaS). He’ll also talk about the many hybrid approaches, so you can gradually move to the cloud. If you are interested in cost savings, additional features, ease of use, quick scaling, improved reliability, and ending the days of upgrading hardware, this is the session for you.

Register now.

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,237 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