Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting string to SQL Server
Message
De
03/01/2012 14:44:46
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01532080
Message ID:
01532120
Vues:
34
>Hi,
>
>When I am testing my ASP.NET to connect to SQL Server I use the following connecting string:
>
>
>connString = "server=MYCOMPUTER\\SQLEXPRESS; database=MyDatabaseName; Trusted_Connection=Yes"
>
>
>But I get an error:
>
>
>Cannot open database "MyDatabaseName" requested by login. The login failed. 
>Login failed for user 'MYCOMPUTER\Dmitry' 
>
>
>I suppose the "Trusted_Connection" syntax is not recognized, right? What should I change in my connString?

One good resource to check for problems like this is http://connectionstrings.com.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform