Groups | Blog | Home
all groups > sql server connect > june 2007 >

sql server connect : Recover Model Database


Uri Dimant
6/25/2007 12:00:00 AM
Gabe
Do you have a backup of model database?

[quoted text, click to view]

Uri Dimant
6/25/2007 12:00:00 AM
Gabe
[quoted text, click to view]
Is it an error?




[quoted text, click to view]

Uri Dimant
6/25/2007 12:00:00 AM
Gabe
I have never restored master when trying to move a SQL server. I usually
script logins and jobs for transfer and restore only the user databases.
http://msdn2.microsoft.com/en-us/library/aa213790(SQL.80).aspx


[quoted text, click to view]

Gabe Matteson
6/25/2007 12:00:00 AM
Thanks for the link. I was able to get the entire server running again on
the cluster. Just need to restore the model from backup (i was able to
create a new one)
i issue:

RESTORE DATABASE model
FROM DISK = 'g:\model\model_db_200706242000.BAK'
WITH MOVE 'modeldev' TO 'G:\Program Files\Microsoft SQL
Server\MSSQL\Data\model.mdf',
MOVE 'modellog' TO 'G:\Program Files\Microsoft SQL
Server\MSSQL\Data\modellog.ldf'

i recieve:
Server: Msg 3156, Level 16, State 1, Line 1
File 'modeldev' cannot be restored to 'G:\Program Files\Microsoft SQL
Server\MSSQL\Data\model.mdf'. Use WITH MOVE to identify a valid location for
the file.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

at a lose!!!
Thanks for any help,
- Gabe

[quoted text, click to view]

Gabe Matteson
6/25/2007 12:56:13 AM
SQL 2000.
I was trying to move the system files, I managed to move the master, msdb,
tempdb but then it died on the model. and I need to recover database... the
sql service keeps failing. thank you!!!

Gabe Matteson
6/25/2007 3:01:57 AM
yes i do, i try to restore it but i get this error..

tempdb is skipped. You cannot run a query that requires tempdb


[quoted text, click to view]

Gabe Matteson
6/25/2007 5:31:00 AM
Yes, it is an error.
- Gabe

[quoted text, click to view]

AddThis Social Bookmark Button