2
Answers

Backup, Detach and Attach A SQL Server Database from managed C# Code

niks lodha

niks lodha

14y
7.2k
1

I have a  SQL Server database that I need to take backup through c# code -- I need to be able to take the mfd and ldf files at any given moment, copy them, zip them, and make them available to an end user.
for that i want to detach my database .please reply me how can we detach the database.
thank you.
Answers (2)