C#/SQL : backup and restore by copy and replace database files? [closed]
First of all, this is a some kind of share knowledge NOT a question. I have faced some problems with creating backup and restore of database by the default method of using backup and restore commands so i have developed my own one by coping the database files and get them back when needed. I will share it in answer to help others. Solution : First of all you have to know that before any copy or replace database files, you have to set the database in offline state and get it back online after finish. 1) Used Methods // fullPath : the path for your database // executablePath : the path for your