Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't connect to SQL 2008R2
Message
De
21/06/2010 18:03:28
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
21/06/2010 17:01:48
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Divers
Thread ID:
01469983
Message ID:
01470082
Vues:
40
Thanks Al

I have this part working now.


>>Hi All
>>
>>I have just installed the developer version of msSql2008R2. I can't seem to get VS2010 to connect using asp.net. I can add a connection using the server explorer. It seems that the problem is with the web.config connection string but I can't seem to get it working. This is what worked using sqlexpress.
>>
>>
>>    <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" 
>>         providerName="System.Data.SqlClient" />
>>  </connectionStrings>
>>
>>
>>This is the closest I have come to making it work with sqlserver except it won't recognize the trusted user.
>>
>>
>>    <add name="ApplicationServices"
>>         connectionString="data source=JIM3\MSSQL2008R2;Database=aspnetdb.mdf; Trusted_Connection=True"
>>        providerName="System.Data.SqlClient" />
>>
>
>http://connectionstrings.com/sql-server-2008
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform