I always made web applications, and now I need to make a console application. I need to use both odbc connection and regular connection.
In the past, I would use:
<add name="LinkConnectionString" connectionString="Data Source=SERENITY\SQLEXPRESS;Initial Catalog=Link;Integrated Security=True" providerName="System.Data.SqlClient"/>
In web.config, however, I'm not sure how to do the same with inline code. Since the string connectionString = @ ".....";
I tried several combinations, looked online (including connectionstrings.com), but none of them worked.
Can anyone help me out? I want both odbc and regular ... since they seem different, they should be different according to the online patterns (which doesn't work).
source
share