Form Exit click and sql database should create automated backup

rockyy

Active member
Joined
Feb 3, 2010
Messages
25
Programming Experience
Beginner
i need to run sql database backup tasks everytime i click on Exit button

Suppose my database name is -myauthor which contains tables,views,procedures

and this is my windows forms
2rh3gk0.jpg


as soon as i click on Exit button i want my database myauthor should create a backup file

or is there any other way to do with windows forms please tell me
thanx
 
any help
execute a SQL statement against SQL Server, including a BACKUP DATABASE command, using a SqlCommand object. On the FormClosed event.
 
Back
Top