Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 connection string redundancy

Author  Topic 

dohamsg
Starting Member

22 Posts

Posted - 2010-11-29 : 03:24:55
Hi, this is extracted from app.config :

<connectionStrings>
<add name="MyConnectionString" connectionString="data source=127.0.0.1;initial catalog=master;User ID=sa;Password=xxxxxx;persist security info=False;packet size=4096"
providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="ConnectionString.SQL Server (SqlClient)" value="data source=127.0.0.1;initial catalog=master;User ID=sa;Password=xxxxxx;persist security info=False;packet size=4096" />
<add key="autoDependencyInjectionDiscovery" value="true" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>

How to make the <appsettings> section use the "MyConnectionString", since it's redundant ?

Thanks.

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2010-11-29 : 03:58:14
This is a .net-question and should be asked in a .net-forum instead. http://social.msdn.microsoft.com/Forums/en/category/netdevelopment could be a good alternative

- Lumbago

My blog (yes, I have a blog now! just not that much content yet)
-> www.thefirstsql.com
Go to Top of Page
   

- Advertisement -