Hi Friends,
There are any way to restore backup database through SQL command ?
Restore backup database through command
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kunal VaishyaRank #990 · 2K reputationPosted May 26, 2012, 5:07 AM EDT
if you want to use SqlCOmmmand then Set Command String and You can Execute it
SenthilkumarRank #387 · 6.5K reputationPosted May 26, 2012, 8:37 AM EDT
There are two statements to back up and restore the database through the sql statement in query window.
Backup
Restore
Backup database TO diskpath
RESTORE database FROM path
If you want to do it through the application then i have developed sample application. You can download it.
http://www.c-sharpcorner.com/Blogs/8679/backup-and-restore-the-database-in-Asp-Net-web-application.aspx