GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Home  » Forums  » GetSQL2005BlockingSPIDs.vbs : Cannot login to database

GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Posted: Wed, Jun 10, 2009 9:44 PM :: Rank: 1
Author
Points: 746
Level: System Center Hero

Hi All

Ive got a strange one where by just in the last week one of our servers with SQL on it is failing a ops manager task :-

GetSQL2005BlockingSPIDs.vbs : Cannot login to database

Gets flagged as an alert in the console, and logged in the event log.  Whats strange is that this was working a fine a few weeks ago and no permissions have changed anywhere.  Its trying to log into the master DB as well.

Ive done a google but coudnt find anything that helped me, whats your thoughts?

One result in google said :-

"This probably arises because your run as profile for SQL does not have
priveledges to login on the master database on the machine. Kindly check for
that the account has rights over it."

Anyone know how to check this also?

Cheers

Reply  
Report Abuse
Re: GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Posted: Thu, Jun 11, 2009 2:20 AM :: Rank: 0
Author
Points: 20093
Level: System Center Expert

 

Hi Stew,
When troubleshooting any error first attained the nature of the error, then look at it in it’s most basic form. So you have an error in SCOM that the password is incorrect for a SQL Server, so here are the steps I would take to troubleshoot. The Master DB holds the Config info for the SQL hence the errors.
o   What is the authentication model for the SQL Server; SQL/Windows.
o   Is the account used anywhere else
o   With this information see if the account has expired
o   Check in the SQL Logs for error messages
o   If there is logon errors on the SQL we still cannot rule out that Ops Mgr is creating the problem, as if a “RunAs” account is incorrect this would have the effect
o   When you have the account then try using that account to log on to the SQL Management console
o   If that has not worked address that account;
o   If it did work then we need to start to look at the rights of the account you are using in the Security section of the Sql Management console.
o   Also you can have a look at the Agent’s logon rights
o   If all is good then go back to the Ops Mgr console check out the “RunAs” account
When and if you change anything then change once wait refer to the logs to see it it has sovled the issue, change two or more things at the same time which one solved the problem?
Reply  
Report Abuse
Re: GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Posted: Thu, Jun 11, 2009 10:58 PM :: Rank: 3
Author
Points: 746
Level: System Center Hero

Cheers Simon,

No config changes have occured on this system.  The action account is a domain admin in our setup, i have logged onto the problem SQL server as that account then opened up SQL Management Studio and was able to open and browse the Master database fine.

I have enabled SQL logging for failed logins now as this wasnt enabled before, this should provide me with more info if it occurs again.

Reply  
Report Abuse
Re: GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Posted: Tue, Jun 16, 2009 1:32 AM :: Rank: 1
Author
Points: 746
Level: System Center Hero
strange, since doing what i said above ie logging in and opening the db, i havnt had the error re-occur. Worth noting i also increased the timeout for this script to run as someone mentioned that on egghead cafe.
Reply  
Report Abuse
Re: GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Posted: Tue, Jun 16, 2009 2:00 AM :: Rank: 1
Author
Points: 20093
Level: System Center Expert
Hi Stew, We infact got the same error yesterday and I have been looking into, will let you know my findings.
Reply  
Report Abuse
Re: GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Posted: Tue, Jun 16, 2009 7:31 AM :: Rank: 4
Author
Points: 20093
Level: System Center Expert
Hi Stew, I knew Pete had published a blog on this see if this helps you. http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexID/19548/Default.aspx Simon
Reply  
Report Abuse

Home  » Forums  » GetSQL2005BlockingSPIDs.vbs : Cannot login to database
Tag Cloud
Quick Links
Top Contributors
Pete Zerger
Points: 25175
Level: System Center Expert
Simon Skinner
Points: 20093
Level: System Center Expert
Tommy Gunn
Points: 19054
Level: System Center Expert
MadHatter
Points: 11573
Level: System Center Expert
Stefan Koell
Points: 10104
Level: System Center Expert