Connection String Machine Independent.

  • Thread starter Thread starter Manny
  • Start date Start date
M

Manny

Hi there,

I've been researching on the diferent newsgroups to find out how to do this,
but no luck so far.

I'm developing a client/server windows application with VB.NET, MSDE is my
backend database.

This is sample connection string to connect to my server:
data source=MACHINE_NAME\MSDE; initial catalog=DatabaseName; user
ID=sa;password=sa

Now, when I distribute this application, the Server will have to be
installed in one machine in the LAN, now the connection string it's
hardcoded right now to look for a specific machine name and the instance
name.

So, how can I build, if it's possible, the connection string machine
independent?



Thanks very much,



Manny
 
Back
Top