My QT program is connected to a sql server which contains with many databases. How can I back up a specific database and all its tables and existing entries to my local drive? I am trying to make a button backup to the database I want to a file and also be able to restore.If there is no way to do this, is there a 3rd party tool I could use at least?
I am giving this a try using QProcess
SqlCmd -S myserver.com -U username -P password –Q “BACKUP DATABASE [Name_of_Database]
TO DISK=’C:/Backup/[Name_of_Database].bak’