Viewing 10 posts - 1 through 10 (of 10 total)
Thanks Mani but let me ask you this- is an outage the only way to reattach the model db?
How did it get deattached? Would the services have to be stopped...
June 30, 2008 at 2:09 pm
Mani,
The system databases are not hidden as I checked following your instructions.
I can see the master, msdb and temp dbs listed in Enterprise Manager.
I ran your query:
select name,dbid from sysdatabases
where...
June 30, 2008 at 12:50 pm
Lynn Pettis (6/30/2008)
Have you tried attaching the existing model.mdf and model.ldf files since you say the exist in the data directory with the other system database files.😎
Yeah with no success....
June 30, 2008 at 12:38 pm
Did the DBA leave under a cloud because he may have left you a leaving present and possibly hacked the sysdatabases table.
It's possible as I created a database on that...
June 30, 2008 at 9:21 am
Clive Strong (6/27/2008)
Never seen this! You can't actually delete the model database from the management studio or execute drop database against it.
Odd because the model db is not listed...
June 27, 2008 at 11:43 am
I just wanted to say thanks to all those who took the time to respond and help me with this query.
It is much appreciated!
February 22, 2007 at 11:59 am
Thanks for the responses gentlemen!
I will put this knowledge into use tomorrow and see how I make out.
Thank you both for taking the time to help me out- it is...
January 24, 2007 at 2:10 pm
It worked!
Thanks so much for the help Michelle!
December 27, 2005 at 2:57 pm
I wasn't aware of that!
Thanks for the warning...
November 7, 2005 at 8:50 am
Thanks for the help Wayne!
Using your Google criteria led me here to an answer that should work:
DECLARE @datapath varchar(255)EXEC master..xp_regread'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion','RegisteredOwner',@datapath OUTPUTPRINT @datapath
November 4, 2005 at 2:19 pm
Viewing 10 posts - 1 through 10 (of 10 total)