Connection String Opinion?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm having a design brain-cramp.

I have an app that needs to have a connection string that can changed by the
user.... (basically the same app needs to be able to talk to different
databases on different servers --- they all have -identical- tables/views/sp
within them)

So, it seems like I would want to make a "database"form and have a
connection string as a property... But as I do this, I feel I'm swimming
upstream all the time so to speak --- everything seems to want to use a
connectiong string from app.config.

Do you have any ideas on how I should handle this? It seems like I can't
use the design time UI much if I keep going the way I'm going (like for grid
design and such)...

TIA!



.



Relevant Pages

  • Re: Connection String Opinion?
    ... So my solution is to store all the database path parts in the reg and allow ... > I'm having a design brain-cramp. ... > I have an app that needs to have a connection string that can changed by ... (basically the same app needs to be able to talk to different ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Security in windows forms apps
    ... On another note since this is an internal app I am not too worried about it ... You need to ensure that your not setting these values at design time. ... I have encrypted the connection string in the app.config file, ... rename the exe to .txt. So it will now be app.txt. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: DynamicProperties connection string not working in inherited form in design mode
    ... configuration file after the InitializeComponent has been called. ... An other attempt could be to set up the connection string in the OnFormLoad ... The message I get when attempting to open Form2 (derived form from Form1 ... You should now receive the message in the design window: ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: how to disable an AdoConnection
    ... the problem is that i need the connection string because in design mode i ... and if i will relly on manually removing the connection string every time ... manipulate there with StreamedConnected property. ...
    (borland.public.delphi.database.ado)
  • TADOConnection
    ... During design, on my office machine, I fill in the ... The program has an INI file where the database location is stored for ... shows the location of the database if no INI file is found. ... forget to empty the connection string for the ADOConnection component, ...
    (borland.public.delphi.database.ado)