I have a requirement where I need to take the backup of database. Once the user clicks the button I need back up the entire database to the location
c:/backup
Database: SQL Server 2005.
Thank you
|
I have a requirement where I need to take the backup of database. Once the user clicks the button I need back up the entire database to the location
Database: SQL Server 2005. Thank you | ||||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You're asking for quite a bit of information in one question, but to start, you can refer to the T-SQL syntax for backing up a database:
| |||
|
feedback
|
|
Look this article. You'll need to execute code analogous to this via
Or else you may use Sql Server object model (SMO) to make a backup. See here (assemblies you need to reference are listed here). | |||
feedback
|