Connection String Machine Independent.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top