none
Why is my connectionString not working?

    Вопрос

  • I’m working on a project in MVC 3.

    The name of my database is:  SchoolIn.Models.SchoolIn.dB

    Here’s my connectionString:

    <connectionStrings>
          <add name="ApplicationServices"
           connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
           providerName="System.Data.SqlClient" />

          <add name="SchoolInDB"
            connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI; Database=SchoolIn.Modles.SchoolInDB; Trusted_Connection=True;User Instance=true; MultipleActiveResultSets=true"
            providerName="System.Data.SqlClient" />
    </connectionStrings>

    The name of my server is :MY_PC_NAME\SQLEXORESS

    How can I change my configuration to make it work?

    27 февраля 2012 г. 1:33

Ответы

Все ответы