December 5, 2012 at 2:14 pm
* when I connect to sql server it displaying the following error:
TITLE: Connect to Server
------------------------------
Cannot connect to NOURHAN-PC.
------------------------------
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
* sql server services are stopped when I try to start them ,they display the following error:
the request failed or the service didn't respond in timely fashion.
consult the event log or other applicable error logs for details.
* when I try to start sql server(sql express) from services.msc
it display the following error :
windows could not start the sql server (SQLEXPRESS) services on local computer.
error 2: the system cannot find the file specified.
can anybody help me please,
thanks in advance
December 5, 2012 at 2:25 pm
A couple of possibilities come to mind.
1.) Somehow, a critical file installed by SQL Server is no longer present,
2.) Somehow, NTFS security on at least one of the critical folders (or files) for SQL Server has been changed, and the account SQL Server runs under no longer has access to it,
3.) Somehow, a critical registry entry for SQL Server has either been deleted, or changed in a bad way.
This may not be an exhaustive list...
Let's hope you have a good backup of the machine, or can easily reinstall and preserve the data files.
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
December 5, 2012 at 3:50 pm
look in the SQL errorlog for more specific messages, sounds like a database file is missing.
---------------------------------------------------------------------
December 6, 2012 at 12:14 am
what is their in Windows Event log ?
-----------------------------------------------------------------------------
संकेत कोकणे
December 6, 2012 at 5:18 am
Is it the first time you are trying to connect or was it working fine earlier?
Pavan.
December 6, 2012 at 5:27 am
What's the last few messages in the SQL error log?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 6, 2012 at 1:18 pm
windows cannot find C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\master.mdf;-eC:\Program Files (x86)\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log\ERRORLOG
December 6, 2012 at 1:25 pm
Huh?
The SQL error log, C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Log\ERRORLOG, open it in notepad and paste the last few lines here
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 7, 2012 at 1:42 am
thers is no folder called MSSQL10.SQLEXPRESS in Microsoft sql server folder
December 7, 2012 at 2:44 am
Ok...
Open the SQL Server configuration manager, find the instance in question (Express), right click-> properties, go to advanced, look for the startup parameters, copy whatever's there and paste it here.
When did the service last run?
What's happened since then?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply