Hey guys,
I've written all my vb codes to work with ms access and now we have set up an SQL server and will be changing the connection string to connect to it remotely.
Problem is, it won't connect and i don't know why.
I have tried all combination of connection but none won't work. I have initially connected to an sql database within my intranet but when i try to access the new sql server from internet, it won't work.
We have created a database called Test, a table called Test, and field called Test. We have forwarded the router to port 1433 towards the server as well.
I have tried these combinations and all gave me the same error:
cString = "Provider=SQLOLEDB.1;Password=jp;Persist Security Info=True;User ID=John;Initial Catalog=Test;Data Source=99.99.0.999"
or
cString = "Provider=SQLOLEDB.1;Server=VCCC2;Database=Test;Uid=John;Pwd=jp;Data Source=99.99.0.999"
Error:
[Microsoft][ODBC SQL Driver][DBNETLIB]SQL Server does not exist or access denied.
I'm not sure how to set up the sql database to allow persistent security or anything. We need it to connect to the sql db or else we wasted all our time on this for nothing..
Thanks guys!
I've written all my vb codes to work with ms access and now we have set up an SQL server and will be changing the connection string to connect to it remotely.
Problem is, it won't connect and i don't know why.
I have tried all combination of connection but none won't work. I have initially connected to an sql database within my intranet but when i try to access the new sql server from internet, it won't work.
We have created a database called Test, a table called Test, and field called Test. We have forwarded the router to port 1433 towards the server as well.
I have tried these combinations and all gave me the same error:
cString = "Provider=SQLOLEDB.1;Password=jp;Persist Security Info=True;User ID=John;Initial Catalog=Test;Data Source=99.99.0.999"
or
cString = "Provider=SQLOLEDB.1;Server=VCCC2;Database=Test;Uid=John;Pwd=jp;Data Source=99.99.0.999"
Error:
[Microsoft][ODBC SQL Driver][DBNETLIB]SQL Server does not exist or access denied.
I'm not sure how to set up the sql database to allow persistent security or anything. We need it to connect to the sql db or else we wasted all our time on this for nothing..
Thanks guys!