question

user-304 (yahoo) avatar image
user-304 (yahoo) asked

Cannot connect to DB Engine from SSMS

Hi,

I am getting this error when trying to connect the database engine (Sql Server 2008) using SSMS. any ideas to solve this problem? Thanks!

TITLE: Connect to Server

Cannot connect to "ServerName".


ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


The operating system returned error 21(The device is not ready.) to SQL Server during a read at offset 0x00000000238000 in file 'E:\Databases\MSSQL10.MSSQLSERVER\MSSQL\DATA\master.mdf'. Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online. (Microsoft SQL Server, Error: 823)

sql-server-2008ssms
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Aaron Alton avatar image
Aaron Alton answered

As the error message says, it sounds like master is not OK. You need to run a DBCC CHECKDB on master (run it on all of your databases to be sure). If you're lucky, it's a minor issue, or a problem with your I/O subsystem that is presenting itself as database corruption.

As CHECKDB author Paul Randal says, 99% of CHECKDB issues are caused by problems with your I/O subsystem, so making sure that you diagnose and solve the I/O subsystem issues should be your #1 priority right now.

For more info...

http://www.sqlservercentral.com/Forums/Topic355924-5-1.aspx#bm482958

http://msdn.microsoft.com/en-us/library/ms176064.aspx

http://www.sqlskills.com/blogs/paul/

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Whitfield avatar image
Matt Whitfield answered

Look through your event log. It's basically saying

'I was half way through reading the data for the master database when the disk decided to tell me that it wasn't ready'.

This 'severe system-level error condition' bit isn't joking.

It's pretty likely though that you will see something in the error log at that time that tells you why that drive isn't being reliable.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.