2
Answers

Restore DataBase form

Photo of B M Suchitra

B M Suchitra

13y
2.7k
1
Hi,

I want to give the user of my application to an option to restore the database from a backup file.. How can i do it... Please guide. i am working on VS 2008 and sql server 2008 windows application

Answers (2)

0
Photo of B M Suchitra
NA 507 339.9k 13y
My dear friend Kiran Karale You have not understood/read the question properly
0
Photo of Kiran Karale
NA 381 170.7k 13y
Taking Backup of Database
New Querty=>

Backup Database Databasename to disk='c:\databasename.bak'  //  give any path  


Restore the Database

restore database   Databasename from disk = 'D:\kiran\ databasename .bak'
with move ' Databasename ' to 'd:\kiran\ databasename .mdf',
move ' Databasename_log' to 'd:\kiran\ databasename _log.ldf',

move 'sysft_iitsm_fts' to 'd:\kiran\smartt25'   // if use sql 2005 then use this line, in 2008 skip this line