August 2, 2010 at 5:20 am
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)).
August 2, 2010 at 5:39 am
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
August 2, 2010 at 9:53 am
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.
August 2, 2010 at 10:19 am
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
August 2, 2010 at 11:47 pm
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.
August 2, 2010 at 11:54 pm
August 2, 2010 at 11:56 pm
good to hear it worked.
have you looked into errorlog. there must be some details.
----------
Ashish
August 3, 2010 at 12:10 am
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
August 3, 2010 at 12:32 am
reboot didn't work in my case.
October 25, 2010 at 8:25 am
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
October 26, 2010 at 12:58 am
October 26, 2010 at 12:59 am
July 5, 2012 at 10:45 am
Hello Friends, thanks for sharing the info on this. This is very helpfull. I got the same issue today and did multiple things......
1. the database is msdb, which caused the issue.
2. I figured out the issue is with Full Text files associated to my userdb's and I am having access denied issues even though my service account have full access to the file locations.
3. restart sql server did not work for me. I was able to rename the msdb physical files ever after sql restart. which means msdb is not connected to sql.
4. FINALLY, I rebooted server and then it worked..... :)..... and I think its the file permission issues.... and am assuming permissions were refreshed and am able to connect.
gud luck with this... this is a serious problem if its on prod. Make sure you have the backups available as a last option.
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply