Submit a ticketCall us

WebinarDatabase Roundtable – Expert Database Professionals Feel Your Pain

In this video broadcast, Head Geek™ Tom LaRock is joined by Karen Lopez, Tim Chapman, and David Klee. They’ve known each other for many years, so this discussion was like four friends getting together to talk data and databases. They discussed diagnostic data collection, common performance root causes, reactive tuning versus proactive, and more. Join us for an engaging discussion on these topics! Plus, Tom LaRock will be available to answer your questions live.

Register now.

Home > Success Center > Network Performance Monitor (NPM) > NPM - Knowledgebase Articles > Cannot open database NetPerfMon requested by the login in NPM

Cannot open database NetPerfMon requested by the login in NPM

Updated: December 13, 2017

Overview

DB maintenance failing with long running queries and database connection errors.

Environment

  • NPM
  • NPM 11.5.2

 

Cause 

Errors in DB maintenance:

 

ERROR SolarWinds.Data.DatabaseMaintenance.NetworkElements - Failed to cleanup deleted network elements tables.
System.Data.SqlClient.SqlException (0x80131904): Cannot open database "NetPerfMon" requested by the login. The login failed.
Login failed for user 'SolarWinds'.
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   DeletedElements()
 

ERROR SolarWinds.Orion.Common.SWEventLogging - Service was unable to open new database connection when requested.
SqlException: Cannot open database "NetPerfMon" requested by the login. The login failed.
Login failed for user 'SolarWinds'.

Connection string - Data Source=sjmonsqlprdg01.na.gilead.com;Initial Catalog=NetPerfMon;Persist Security Info=False;User ID=SolarWinds;Password=*******;Max Pool Size=1000;Connect Timeout=1200;Load Balance Timeout=120;Packet Size=4096;Application Name=DatabaseMaintenance@Database-Ma...xe;Workstation ID=SolarWinds
2017-12-07 03:19:25,195 [1] ERROR DatabaseMaintenanceGui.Program - Database Maintenance Error.
System.Data.SqlClient.SqlException (0x80131904): Cannot open database "NetPerfMon" requested by the login. The login failed.
Login failed for user 'SolarWinds'.
 at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
 

Resolution

  1. The customer was installing SQL server patches at the time of maintenance running that caused this and should not patch SQL server during DB maintenance running.
 

 

Last modified

Tags

Classifications

Public