Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Microsoft SQL Server Error 904 Expand / Collapse
Author
Message
Posted Monday, August 2, 2010 5:20 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, June 17, 2013 12:55 AM
Points: 7, Visits: 253
Hi,

I am not able to access my any database whenever i try to access i get this message.

Error msg:-

Database 4 Cannot Be Autostarted During Server Shutdown Or Startup. (Microsoft SQL Server, Error: 904).

Please help.

Remarks.

1.SQLserver.exe is running.
2.No trace flag is used.
3.Database status is ONline in(sys.databases and databasepropertyex(status)).


Post #962093
Posted Monday, August 2, 2010 5:39 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Thursday, August 28, 2014 3:20 AM
Points: 880, Visits: 4,093
is the drive where you have your userd database are alive and accessible?
Any problem with disk?

Give more information about your user database


----------
Ashish
Post #962097
Posted Monday, August 2, 2010 9:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, June 17, 2013 12:55 AM
Points: 7, Visits: 253
Hi thanks for your response.

Yes disk and drives are in place & I am able to create new db thats not a prob.
I have not modify the location of files as well.

Post #962293
Posted Monday, August 2, 2010 10:19 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Thursday, August 28, 2014 3:20 AM
Points: 880, Visits: 4,093
is database4 the only database which have the problem OR there are other database as well.

Just try to rename the mdf and ldf file of the database. Are you able to rename it with any other name or getting the error as file is in use.
If getting error in rename then it still being accessed by sql server.
Just run the query in master :-
select * From sysdatabases and check the status.

And recovery option(when all hope gone), try restoring with latest backup set with different name. But before this I will really like to see the errors you getting in above step to resovle the case further


----------
Ashish
Post #962314
Posted Monday, August 2, 2010 11:47 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, June 17, 2013 12:55 AM
Points: 7, Visits: 253
Hi,

Problem is with all the db except(master,model,tempdb) but still I can not see the properties of (master,model,tempdb) from Object explorer.

I checked the status of all db in sysdatabases and all of them are online.
Hence, I can not rename file names.

They do not have latest backup of db as well.

I tried on trick and that worked but I believe thats not the proper solutions.

-I just deattached db one by one & attached again and that worked fine.

Post #962606
Posted Monday, August 2, 2010 11:54 PM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Friday, August 22, 2014 4:51 AM
Points: 1,536, Visits: 1,745
Hi there are other occurance of this error and a reboot resolved it.

[url=http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/4aafbf3d-f4a0-414d-9de9-79a559a36122][/url]
Post #962607
Posted Monday, August 2, 2010 11:56 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Thursday, August 28, 2014 3:20 AM
Points: 880, Visits: 4,093
good to hear it worked.
have you looked into errorlog. there must be some details.


----------
Ashish
Post #962609
Posted Tuesday, August 3, 2010 12:10 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, June 17, 2013 12:55 AM
Points: 7, Visits: 253

Hi,

Even I dont understand the logic behind this, I just done that to make their db available for the time being.

How come deattach/attach can resolve this issue?


Cheers,
Vivek
Post #962612
Posted Tuesday, August 3, 2010 12:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, June 17, 2013 12:55 AM
Points: 7, Visits: 253

reboot didn't work in my case.

Post #962618
Posted Monday, October 25, 2010 8:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, October 25, 2010 8:21 AM
Points: 1, Visits: 4
vhr2003 (8/3/2010)


How come deattach/attach can resolve this issue?


Cheers,
Vivek


Hi,

My guess is that this is file permissions related. That might be why dettach/attach resolves the issue. This causes SQL server to apply an ACL to the mdf and ldf, overwriting your permissions and giving the service account and administrators full access.

Thanks,

Gian
Post #1010021
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse