Database Connections

G

Guest

I have MSDE running on one of my computers, along with my windows application.

this.cnKennel.ConnectionString = "Data Source=(local)\\NetSDK;packet
size=4096;integrated security=SSPI;"persist security info=False;initial
catalog=kennel";.

If I point the data source at the computer it works. Is there a way to use
the above statement to connect?? Please help, Thanks
 
C

Cor Ligthert [MVP]

Nbohana,

I assume if you ask from other computers. To connect it, you will have to
make from your computer a server. Sometimes done with a workgroup network,
however in general a bad solution. Don't you have a server somewhere?

Cor
 
G

Guest

Yes I have a server, but when I load the application onto a laptop I would
like to use MSDE. And have it to work without any changes to the software.
 
C

Cor Ligthert [MVP]

nbohana,
Yes I have a server, but when I load the application onto a laptop I would
like to use MSDE. And have it to work without any changes to the software.
--

At least you would have to change the connection string.

What you can place in the program by the way by instance using the config
file or the registry.

If that is the question, than tell how you make that connection string.

I hope this helps,

Cor
 

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