Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Database coruption

Author  Topic 

ilimax
Posting Yak Master

164 Posts

Posted - 2010-03-29 : 11:35:49
Does anbybody have idea why I have this problem. We are using .net application with Sql Server database. Sudenly, database is not available to connect. When I go to the server and check databse, I am not able to open with Manager too. I can not open to see object of database. I fix problem on this way, click over databse with right button, take databse offline, then bring back online.
After that everything works fine.

But, this problem start doing almost every day.

Does anybdody have idea why? What can cause this state of database?

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-03-29 : 11:44:57
You should have a look if sql server is reporting any errors in the log files.
How to do that? Look here:
http://decipherinfosys.wordpress.com/2008/04/02/log-file-viewer-in-sql-server-2005/


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

Madhav
Starting Member

38 Posts

Posted - 2010-03-29 : 11:45:05
What is the sql server version and service pack?
Go to Top of Page

ilimax
Posting Yak Master

164 Posts

Posted - 2010-03-29 : 11:48:05
2005 version 9.00.4035.00
Go to Top of Page

Madhav
Starting Member

38 Posts

Posted - 2010-03-29 : 12:03:56
quote:
Originally posted by ilimax

2005 version 9.00.4035.00


Did you find any errors in the sqlserver error logs?
Go to Top of Page

ilimax
Posting Yak Master

164 Posts

Posted - 2010-03-29 : 12:15:54
I found error 18456, Severity 14, State 16 ...

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-29 : 13:58:45
Run SQL Profiler to determine what is going on. I have a feeling that a massive query is running though using tons of locks. By offlining the database, you are severing the queries so that's why it is fixing the issue for you.

I don't have any error numbers memorized, so please post the text of the error and not just the number.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -