SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Microsoft SQL Server Error 904


Microsoft SQL Server Error 904

Author
Message
vhr2003
vhr2003
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 257
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)).
crazy4sql
crazy4sql
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4385 Visits: 4514
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
vhr2003
vhr2003
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 257
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.
crazy4sql
crazy4sql
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4385 Visits: 4514
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
vhr2003
vhr2003
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 257
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.
sql_lock
sql_lock
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3401 Visits: 1999
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]
crazy4sql
crazy4sql
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4385 Visits: 4514
good to hear it worked.
have you looked into errorlog. there must be some details.

----------
Ashish
vhr2003
vhr2003
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 257
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
vhr2003
vhr2003
Valued Member
Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)Valued Member (61 reputation)

Group: General Forum Members
Points: 61 Visits: 257
reboot didn't work in my case.
Gian A
Gian A
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search