I have made a stoopid mistake of deleting the DB that was sat to default with Enterprise Manager. Now I can't use Enterprise Manager to work with any of my DB's.
Don't get me wrong, the server is still running, and I am able to view all the old folders in IIS, I can log into and add content to different sites I am working with.
But Ican not add new DB's, make backups or modify excisting tables and so on.
There must be a way to make another Db my new defalut? Pls say it is, so I don't need to reinstall, cause then I will loose data the way it is now.
Pls tell me there is a someway easy way around this issue.
slopee
Sad n' bitterEXEC sp_defaultdb 'User', 'DB'|||I will try this in commandline, and put my username, and the DB i want for default
If this does not work I hope someone can give mestep by step guiding, that way I know what I am doing:)) I am not even sure this is to be run from cmd, or where i should run it:))
Will try this, and let you know how it went.
slopee|||Ok, sure what you wrote is totally correct, but I am afraid I am going to need more then that. I will need a step by step guide on howto do this, cause i didn't work from cmd line.
If someone knows what to do here, pls guide me.
slopee|||Clearly I need help. I can barely spell, ("Deliting" lol) how should I possible manage to apply the line you submitted?;-)
Come on y'all, surely there is someone how can give me basic details? I need it explained in details, and step-by-step pls.
s|||From MS Support (http://support.microsoft.com/default.aspx?scid=kb;en-us;307864&Product=sql):
f the user's default database no longer exists, or has been marked suspect, use the ISQL command line utility to change the user's default database to a database that is currently available for a connection.
1. At a command line prompt, type the following and then press ENTER: C:\>isql -E
2. At the isql prompt, type the following and then press ENTER: 1>sp_defaultdb 'user's_login', 'master'
3. At the second prompt, type the following and then press ENTER:2>go|||Great.
Thx y'all.
s
No comments:
Post a Comment