sql исключение относительно строк подключения - PullRequest
0 голосов
/ 16 августа 2011

У меня есть следующая строка подключения:

  <connectionStrings>
<clear/>

<add name="modelConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Documents and Settings\Little Rabbit\Desktop\YourGuruSite\App_Data\ASPNETDB.MDF';Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="CP_AllQuestionsAnswered" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Documents and Settings\Little Rabbit\Desktop\New Folder (2)\YourGuruDB1.mdf';Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="YourGuruDB" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Documents and Settings\Little Rabbit\Desktop\New Folder (2)\YourGuruDB1.mdf';Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>

Я получаю следующую ошибку при запуске сайта:

An attempt to attach an auto-named database for file C:\Documents and Settings\Little Rabbit\Desktop\New Folder (2)\YourGuruDB1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
...