Back up sqlserver database from remote pc in c#
Can we take sql server database backup from remote pc in C# using smo?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Sep 3, 2014, 4:42 AM
but i can suggest you to see if below can help you.
you can use ProcessStart to run any command line utility and fire sqlcmd to backup db
ProcessStart("sqlcmd -S [server] -E -Q "rBACKUP DATABASE master from disk=
'C:\ MyBackup.bak' ")
Please click checkbox "This is correct answer" if you find it helpful!