An attempt to attach an auto-named database for file **** failed

纵然是瞬间 提交于 2019-12-10 22:17:56

问题


I added new database file in my solution's app_data folder in VS2008.

But when I tried to expand it from Server Explorer, I get this error

An attempt to attach an auto-named database for file .... failed.

Find the screen shot of the error which occurred in vs2008 IDE.

Can anyone tell me what the problem is?

And how to solve it


回答1:


The error is clear in that dialog box, the file you are trying to attach is on a UNC share (any file path beginning with \\ is a UNC path), which is not supported. You need to move the file to the server you are trying to attach it to and reference it by it's local file name, such as S:\SQLdata\TimeCard.mdf



来源:https://stackoverflow.com/questions/13622299/an-attempt-to-attach-an-auto-named-database-for-file-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!