G
Guest
Hi;
When I call
DbProviderFactories.GetFactory("System.Data.SqlClient").CreateDataSourceEnumerator().GetDataSources();
I get 2 entries for my computer (Sql Server & Sql Server Express). For Sql
Server I get "BELLE", DBNull, "No", "8.00.194" and for Sql Server Express I
get "BELLE", "SQLEXPRESS", "No", "9.00.1399.06".
My question is, how do I build a connection string to the server based on
this info returned?
When I call
DbProviderFactories.GetFactory("System.Data.SqlClient").CreateDataSourceEnumerator().GetDataSources();
I get 2 entries for my computer (Sql Server & Sql Server Express). For Sql
Server I get "BELLE", DBNull, "No", "8.00.194" and for Sql Server Express I
get "BELLE", "SQLEXPRESS", "No", "9.00.1399.06".
My question is, how do I build a connection string to the server based on
this info returned?