Here is a example of connection string declaration
providerName="System.Data.SqlClient" />
let's try to put the server name into a textBox (txtServerName )
using System.Configuration;
using System.Data.SqlClient;
SqlConnectionStringBuilder csb = new SqlConnectionStringBuilder();
csb.ConnectionString = Properties.Settings.Default.dbConnectionString.ToString();
txtServerName.text = csb.DataSource.ToString();
Aucun commentaire:
Enregistrer un commentaire