Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to specify Trusted Connection?
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01438452
Message ID:
01438473
Vues:
26
>>If you want to specufy a SQL username/password in your connectionstring, then do not include the Trusted_Connection parameter or set it to False.
>
>Again, thank you very much. All works now. I simply removed references to user ID and password and instead have Trusted_Connection=True and it works.

Took me some time to open the correct version of the project - also I opened it in VS 2010 and it wanted to convert the solution into newer verison.

Here is my connection string
<add name="MyConnectionString" connectionString="Data Source=NAOMI-PC\SQLEXPRESS;Initial Catalog=MyDatabase;Integrated Security=True" />
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform