Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write the query for taking database restore in sql?

Answers were Sorted based on User's Feedback



write the query for taking database restore in sql?..

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

write the query for taking database restore in sql?..

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

Post New Answer

More SQL Server Interview Questions

how to create a scrollable cursor with the scroll option? : Sql server database administration

0 Answers  


What the class forname () does?

0 Answers  


Why do we partition data?

0 Answers  


List all the types of user-defined functions?

0 Answers  


What is scan table/view and seek table/view when its occurs? : sql server database administration

0 Answers  


how we can store the value like that 001,003,023 etc in sql server 2005

7 Answers  


What is BCP? When does it used in sql server 2012?

0 Answers   TryTechnicals Pvt Ltd,


Can you please explain the difference between function and stored procedure?

0 Answers  


Which are the important points to note when multilanguage data is stored in a table?

0 Answers  


How to get the query of a table in sql server?

0 Answers  


Explain about SQLOS?

0 Answers  


Which is faster statement or preparedstatement?

0 Answers  


Categories