Backup, Detach and Attach A SQL Server Database from managed C# Code
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.