Back up sqlserver database from remote pc in c#
Can we take sql server database backup from remote pc in C# using smo?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #259 · 9.8K reputationPosted Sep 3, 2014, 12:42 AM EDT
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!