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 |
Explain optimistic and pessimistic concurrency?
How do you set a trace flag in sql server?
What is difference between global temporary tables and local temporary tables?
can anyone explain me the concept of Serialization in Detail and Clear? plz its urgent i have interview on friday (15th feb)
sql server architecture ?
What number aggregate functions are accessible there in sql?
How can we call UDF(User Define Function) using C# code in ASP.net ?
Which is better statement or preparedstatement?
explain different types of constraints? : Sql server database administration
What options are available to audit login activity? : sql server security
Do you know the policy based administration feature of sql server 2008?
What is the difference between count () and rowcount ()?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)