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.
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.