Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
12
Reply
database with the same name exists, or specified file cannot
Jyoti Jodha
Jul 4 2017 4:25 AM
491
Reply
I've got a problem connecting to my Database. I get this error
An attempt to attach an auto-named database for file D:
\abc
\abc
\bin\Debug\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
my connection string :
<connectionStrings>
<add name="abc.Properties.Settings.abcConnectionString"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\test.mdf;Integrated Security=SSPI" />
</connectionStrings>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
12
)
Next Recommended Forum
Table Header and Table Text using VSTO word.
How to apply the Font nane and size for Table Rows in VSTO.