C
Connie McBride
I am a long time Delphi programmer.
I am starting to work with c#.
I have a couple of questions on how to define connection settings on the
fly, since I have many client sites, each with their own database setup
differently as far as name, server name etc. Pretty common.
My Delphi App uses components to retrieve avaliable server names and
available database names, then I wrote code to build the connection string.
I am trying to find either a way to call up the standard connection dialog
box, or to get the server names/database names from c#.
There is an overwhelming amount of help, but everywhere I've looked, the
connection is hardcoded in some way, or the user has to type in the
servername/database name with no selection from combo boxes.
Does anyone have an example of how to dynamically create the connection
string, or how to get the servername/database lists so I can create the
string myself?
I am starting to work with c#.
I have a couple of questions on how to define connection settings on the
fly, since I have many client sites, each with their own database setup
differently as far as name, server name etc. Pretty common.
My Delphi App uses components to retrieve avaliable server names and
available database names, then I wrote code to build the connection string.
I am trying to find either a way to call up the standard connection dialog
box, or to get the server names/database names from c#.
There is an overwhelming amount of help, but everywhere I've looked, the
connection is hardcoded in some way, or the user has to type in the
servername/database name with no selection from combo boxes.
Does anyone have an example of how to dynamically create the connection
string, or how to get the servername/database lists so I can create the
string myself?