Cannot connect to DB Engine from SSMS


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".


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)

more ▼

asked Oct 26, 2009 at 11:10 AM in Default

avatar image

user-304 (yahoo)
11 1 1 3

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

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...




more ▼

answered Oct 26, 2009 at 11:20 AM

avatar image

Aaron Alton
575 2 3

(comments are locked)
10|1200 characters needed characters left

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.

more ▼

answered Oct 26, 2009 at 11:22 AM

avatar image

Matt Whitfield ♦♦
29.5k 62 66 88

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Oct 26, 2009 at 11:10 AM

Seen: 3903 times

Last Updated: Oct 26, 2009 at 11:43 AM

Copyright 2018 Redgate Software. Privacy Policy