write the query for taking database restore in sql?
Answer Posted / gtp
RESTORE DATABASE NewDatabase
FROM DISK='D:\Backup\NewDatabase.bak'
WITH
MOVE 'NewDatabase' TO 'D:\ActiveDB\NewDatabase.mdf',
MOVE 'NewDatabase_log' TO 'D:\ActiveDB\NewDatabase_log.ldf'
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is snapshot report?
How to update muliple row in single query?
What are the benefits of normalization?
What is transact-sql language?
Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?
How many types of subqueries are there in sql server?
‘Order by’ is not allowed in a view how can you sort information from a view?
What are the five major components of a dbms?
What is the use of group by clause?
What is index fragmentation in ms sql server?
Tell me what are cursors and when they are useful?
Difference between primary key and clustered index?
When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?
Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.
What is db stored procedure?