Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating connection string with ID
Message
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00842508
Message ID:
00842516
Vues:
17
Thank you Morgan for your reply,

No not this what I want, my connection strings works fine, but I need to add a User ID authentication to my string, meaning the connection will connect to database server with the user mentioned in the connection string only.



>>Hi All,
>>
>>How to create a connection string to SQL server with user ID, this is the connection string I am using:
>>
>>strConnString = "Data Source=" & strDataSource & "; Integrated Security=SSPI" & "; Initial Catalog=" & strDatabase
>>
>>oAdoNetSql_Conn.ConnectionString = strConnString
>>oAdoNetSql_Conn.Open()
>>
>>
>>Thanks for the help
>
>
>string ConnectString = "Data Source=" + strDataSource + ";Integrated Security=SSPI" + "; Initial Catalog=" + strDatabase;
>
>SqlConnection oConnection = new SqlConnection(ConnectString);
>oConnection.Open();
>
>
>
>Is that what you wanted?
>
>Morgan
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform