尝试为文件附加自动命名的数据库失败。存在具有相同名称的数据库 [英] An attempt to attach an auto-named database for file failed. A database with the same name exists

查看:413
本文介绍了尝试为文件附加自动命名的数据库失败。存在具有相同名称的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经多次看过这样的话题了,他们告诉我们把用户实例设为true来传递这个execption。当我在visual studio中执行我的程序时,几乎所有的东西都没问题但是当我为它构建一个设置并再次执行时,这个例子出现了!我该怎么办?!?对我来说非常重要。

i have seen such as this topic many times and they told to put user instance true to pass this execption . when i execute my programme in visual studio ,almost every things is ok but when i build a setup for that and again execute ,this exeption appear ! what should i do?!?it is very important for me.

推荐答案

首先检查一下你的文件夹是不是只读的。它适合我。第二个再次检查你的连接字符串。同时检查User Instance = True

欲了解更多信息,请查看asp.net论坛链接:



http://forums.asp.net/t/879454。 aspx?一个+尝试+ +附加+一个+自动+命名+数据库+ +文件+失败 [ ^ ]



谢谢
First one check that your folder is not read-only. It Worked for me. Second one again check your connection string. Also check User Instance=True
For more discussion please look the asp.net forum link:

http://forums.asp.net/t/879454.aspx?An+attempt+to+attach+an+auto+named+database+for+file+failed[^]

Thanks


这篇关于尝试为文件附加自动命名的数据库失败。存在具有相同名称的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆