backup and restore db sql from C# -


good, work on application perform backups , restore of sql database. in local mode have no problems. using "sqldatasourceenumerator" list of lan servers. start application correctly, ready available servers, connect correctly. problem have when want create path of savefile.dialog locate backups creates backup in machine of sql server , not in machine connect. question is: how solve route?

 s = save1.filename;  query ("backup database" + cmbbase.text + "to disk = '" + s + "' init"); (maybe in route should add ip) 

thanks help.

the backup command in tsql not allow network path referenced in sql command. if backup (for example) c:\temp\fred.bak, path local machine upon sql server instance running.

so suspect want do, need - (a) backup folder on machine running sql server instance , (b) copy file there central repository.

i add restore command in tsql not allow references network paths, file being restored needs on drive local machine running sql server instance.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -