Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Connection Strings from app.config
Message
From
16/05/2008 14:41:11
 
 
To
16/05/2008 13:57:45
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
ASP.NET
Category:
Deployments
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01317528
Message ID:
01317706
Views:
7
>>connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=cds;Integrated Security=True"
>
>The master application should pass the connection to the .dll being executed.

Yes, that is how I do it. The DBML however has to know the connection string at design time in order to layout the tables. Unfortunately the designer then either hard codes that information into the class or into the settings file. Even if you never use that connect string in your application.

The problem is that connection strings can sometimes have rather personal information in them such as user names and passwords. I think it is poor design to compile that type of information into your DLLs or distribute it with your app.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform