Question : specify destination logical filename in restore command?

if the existing backup's data file name is AVIMS_Data, but if you want to it to be named as SRSBV_Data through the tSQL code, how could you add to the foll:

RESTORE DATABASE [SRSBV] FROM  DISK = N'C:\AVIMS.bak' WITH  FILE = 1,  MOVE N'AVIMS_Data' TO N'C:\SRSBV.mdf',    MOVE N'AVIMS_log' TO N'C:\SRSBV.ldf',  NOUNLOAD,REPLACE,  STATS = 10

thanks

Answer : specify destination logical filename in restore command?

See Restoring a Complete Backup to a New Database on the Same Server

http://technet.microsoft.com/en-us/library/cc966495.aspx#E5AA
Random Solutions  
 
programming4us programming4us