Hi, jemacc, I am not so clear about this:
Quote:
|
quote:RESTORE DATABASE TestDB
|
Quote:
FROM DISK = 'c:\Northwind.bak'
WITH MOVE 'Northwind' TO 'c:\test\testdb.mdf',
MOVE 'Northwind_log' TO 'c:\test\testdb.ldf'
|
It is quite clear what the first line and second line are, but I am not so understand what the third and fourth line are. What does it means?
I know 'Northwind' and 'Northwind_log' are the backed-up database and its log, rite? But why move to 'c:\test\testdb.mdf' and 'c:\test\testdb.ldf'?
I have browsed through my C directories, I see there are numbers of database table and log file in this => C:\Program Files\Microsoft SQL Server\MSSQL\Data
If I follow yours example, is it correct if I code as this:
WITH MOVE 'Northwind' TO 'C:\Program Files\Microsoft SQL Server\MSSQL\Data',
MOVE 'Northwind_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL\Data'[/quote]