Backup SQL Server database from windows form application by a button click [closed]
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I need to backup a database by clicking a button on the windows application form. I'm developing it on Visual Studio 2012 in C#. In Windows site, I learned to backup using Transact SQL. I tried it from Transact SQL editor in visual studio. Here is the SQL transact I used: USE TestDB; GO BACKUP DATABASE TestDB TO DISK = 'E:\aa.Bak' WITH FORMAT, MEDIANAME = 'Z_SQLServerBackups', NAME = 'Full Backup of