|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, March 13, 2013 3:09 AM
Points: 7,
Visits: 252
|
|
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)).
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:10 PM
Points: 876,
Visits: 3,731
|
|
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
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, March 13, 2013 3:09 AM
Points: 7,
Visits: 252
|
|
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.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:10 PM
Points: 876,
Visits: 3,731
|
|
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
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, March 13, 2013 3:09 AM
Points: 7,
Visits: 252
|
|
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.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 4:25 PM
Points: 1,289,
Visits: 1,536
|
|
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]
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:10 PM
Points: 876,
Visits: 3,731
|
|
good to hear it worked. have you looked into errorlog. there must be some details.
---------- Ashish
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, March 13, 2013 3:09 AM
Points: 7,
Visits: 252
|
|
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
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, March 13, 2013 3:09 AM
Points: 7,
Visits: 252
|
|
reboot didn't work in my case.
|
|
|
|
|
Forum 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
|
|
|
|