2
Reply

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

niks lodha

niks lodha

May 18 2010 1:10 AM
6.8k

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)