4
Answers

how to copy a sql server database using C# code

Soumya Surendran

Soumya Surendran

14y
12.6k
1


hai expert................
how to copy a sql server database using C# code . I was using the following code
File.Copy("dbRDAgent.mdf", "" + strpath + "\\dbRDAgent.mdf");
an error occures that "the process cannot access the file "dbRDAgent.mdf" because it is being used by another process."

thanks in advance......
Answers (4)