Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42443

VS 2010 Using SQL Database on remote PC.

$
0
0
Currently I have a program and sql database both residing on the same PC and all is working fine.
My current connection string is PubConnString = "Data Source=mikespc\sqlexpress; Initial Catalog=db_PigginGifts; Integrated Security=True"

I now wish to use the same program but with the database on a different PC eventually connecting over the internet using a static IP Address. To test this I have tried connecting to my own PC rather than connecting remotely and used the following connection string but although I do not get any errors I do not access the data in my database either.

PubConnString = "Provider=sqloledb;Data Source=192.168.1.65,1433;Network Library=DBMSSOCN;mikespc\sqlexpress; Initial Catalog=db_PigginGifts; Integrated Security=True"

My first question is whether it is possible to connect to a database on your own PC this way and if so what am I doing wrong.

Viewing all articles
Browse latest Browse all 42443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>