niks lodha

niks lodha

  • NA
  • 18
  • 0

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

May 18 2010 1:10 AM

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)