write the query for taking database restore in sql?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sandeep thakur
IN SQL SERVER 2005:-->
RESTORE DATABASE database name FROM DISK
='E:\Dailybackup\backupname.bak'
WITH MOVE 'database name' TO 'D:\database\databasename.mdf',
MOVE 'database name' TO 'D:\database\databasename.ldf',
REPLACE
Is This Answer Correct ? | 1 Yes | 0 No |
What are approximate numeric data types in ms sql server?
how to delete duplicate rows from table in sql server
12 Answers HCL, UHG,
What is the usage of the sign function?
Differentiate between SQL and ORACLE joins and write their syntax.
How to delete the duplicate rows from a table in SQL Server ??
What are points to remember while using the fillfactor argument?
What is an index. What are the types?
What are the purpose of Normalisation?
What are the different types of replication? How are they used?
How does recursive cte works in sql server?
What is a trigger what are the advantages of trigger?
How to configure odbc dsn with different port numbers?