If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > how to solve error 40 on MSSQL 2005 ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-12, 14:13
navedjobs navedjobs is offline
Registered User
 
Join Date: Sep 2011
Posts: 35
Red face how to solve error 40 on MSSQL 2005 ?

yesterday everything was set my application was running fine but suddenly at midnight the MSSQL 2005 server start giving me an error saying error 40
Code:
error 40 – could not open a connection to SQL server
so i have quickly search the net to solve this up and i got a blog which says go to your configuration manager and check whether MSSQL service is running , so i went there and check the service was not running so i started it, but it fails to start
i have not changed anything and I m just connecting my application to the database and both are local (no remote connection at all)
can any one explain me why this problem occurs and to be more specific how to solve this problem in couple of minutes because i hate that error message.
Reply With Quote
  #2 (permalink)  
Old 02-10-12, 14:31
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
what is in the SQL Server errorlog file?
Reply With Quote
  #3 (permalink)  
Old 02-11-12, 02:03
navedjobs navedjobs is offline
Registered User
 
Join Date: Sep 2011
Posts: 35
Quote:
Originally Posted by MCrowley View Post
what is in the SQL Server errorlog file?
thanks for the reply but that was my friends laptop and now i don't have it to check whats there in the log file
cant you provide help with just the error message
Reply With Quote
  #4 (permalink)  
Old 02-13-12, 09:49
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
Sorry. My crystal ball is not working.
Reply With Quote
  #5 (permalink)  
Old 02-13-12, 12:35
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
Quote:
Originally Posted by navedjobs View Post
thanks for the reply but that was my friends laptop and now i don't have it to check whats there in the log file
cant you provide help with just the error message
We are somewhat limited, because in order to help you resolve an error 40 where the SQL Server service does not start we need to see the errorlog file to determine what the problem/solution is.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #6 (permalink)  
Old 02-13-12, 17:47
TallKewlOnez TallKewlOnez is offline
Registered User
 
Join Date: Feb 2012
Posts: 12
Could be anything

-Is the disk out of space
-did the password change for the account running sql server
-did someone delete a file they weren't supposed to
-did someone change the default database then drop it
the list goes on, need those logs
try using eventvwr.msc applicationm log you will see the event
should give you a good idea as t o where to start
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On