The System Center Operations Manager Support Team Blog

This is the OpsMgr 2007 blog for the Microsoft support team. If you were looking for the SCOM 2007 or MOM 2005 blog then you are in the right place.

OpsMgr 2007 Alert: Cannot login to database

OpsMgr 2007 Alert: Cannot login to database

  • Comments 3
  • Likes

Toolbox3Hi everyone, Vikram Sahay here and I’m back again with another interesting topic on System Center Operations Manager 2007. Hope you find it useful.

Recently we were working on an  issue where we were getting an alert from few of the SQL servers as: 'Cannot login to database'

We checked and verified that the 'Agent Action account' or the ‘SQL Monitoring Account’ had the 'SysAdmin' rights on the SQL servers but we were still getting the error as 'Cannot login to database' which puzzled us.

Upon troubleshooting, we found that the alert was only from few of the custom databases and not from all the databases located on a SQL server.  Further, we found that when we got the alert we were getting an event like 17137 with the description as ‘Starting up database '<Custom DB name>'.  We also found that on the properties of those DBs (for which we get the alerts), the ‘Auto Close’ option was set as ‘True’ whereas the default value is set as ‘False’.


Once we changed the value of ‘Auto Close’ to ‘False’ we no longer got the 'Cannot login to database' alert.  This was a fairly rare issue so I thought I would share it here.  Hope you will find it useful.

Vikram Sahay | System Center Technical Lead

App-V Team blog:
AVIcode Team blog:
ConfigMgr Support Team blog:
DPM Team blog:
MED-V Team blog:
OOB Support Team blog:
Opalis Team blog:
Orchestrator Support Team blog:
OpsMgr Support Team blog:
SCMDM Support Team blog:
SCVMM Team blog:
Server App-V Team blog:
Service Manager Team blog:
System Center Essentials Team blog:
WSUS Support Team blog:

clip_image001 clip_image002

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment