Copy mdf file and use it in run time

Posted by Anibas on Stack Overflow See other posts from Stack Overflow or by Anibas
Published on 2009-11-17T15:31:47Z Indexed on 2010/03/13 10:05 UTC
Read the original article Hit count: 319

Filed under:
|
|
|

After I copy mdf file (and his log file) I tries to Insert data. I receive the following message:

"An attempt to attach an auto-named database for file [fileName].mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

When I copied the file manual everything worked normally. Is it correct the order File.Copy leaves the file engaged?

© Stack Overflow or respective owner

Related posts about file

Related posts about mdf