views:

35

answers:

0

I am trying to move databases from one SQL server to another.I am doing this through a Console written in C#. The methodology is a follows. I first detach the database, move the data and log files to the new location and then attach the files from there. However after I detach the file, I am not able to copy the data and log files. The error that I get is :'device is not ready'. I am using network paths for both the source and destination. I'm using the File.Copy() to move the files and I have permissions to create files in the respective folders