all groups > sql server misc > february 2004 >
You're in the

sql server misc

group:

RESTORE DATABASE question


RESTORE DATABASE question shaab.mohagir NO[at]SPAM bonbon.net
2/12/2004 12:13:16 PM
sql server misc:
Hello,

I ran the script bellow, then the statsales datbase log and data
"logical" file names changed to those of the database
'statsales_staging_victory_full' which I restored from as shown in the
script bellow.

The questions are:

Do I have one chared log file now, for both statsales and
statsales_staging ?
Will this hurt or confuse anything on the server?
How can I change those names back to there original names?

Thanks for any help.

mFH

==================================================================
USE master
RESTORE DATABASE statsales
FROM DISK = 'E:\backup\statsales_staging_victory_full'
WITH REPLACE ,
MOVE 'statsales_staging_dat' TO 'G:\statsales\statsales_Data.MDF',
MOVE 'statsales_staging_log' TO 'D:\statsales_Log\statsales.LDF'

GO
Re: RESTORE DATABASE question Christian Smith
2/12/2004 3:36:45 PM
They don't share a log. I think you are ok. The boundry on the logical
name for database devices (bad memories) is the database.

Christian Smith

[quoted text, click to view]

Re: RESTORE DATABASE question Tibor Karaszi
2/12/2004 9:57:14 PM
Correct, Christian.

It might also be worth mentioning that in SQL2K, you can rename the logical
filename using ALTER DATABASE.

--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver


[quoted text, click to view]

Re: RESTORE DATABASE question shaab.mohagir NO[at]SPAM bonbon.net
2/13/2004 7:15:25 AM
Thanks Christian and Thanks Tibor...

I'll see how can I change the log names using ALTER DATABASE, I hope
it's something I can do.

Thanks again.
mfharraz

[quoted text, click to view]
AddThis Social Bookmark Button