How does ADO connect to the SQL Server database on WAN, please advise you, very anxious, head is big.

xiaoxiao2021-03-06  61

Recently developed a project, you have to use VB ADO to access SQL Server on WAN, try a lot of ways but have not succeeded. The access code is as follows:

fconnectionstring = "provider = SQLOLEDB.1; DATA SOURCE =" &

Remote server IP or domain name & _

"; Initial catalog = info; persist security info = true; user ID = sa;" & _

"Password =" &

Database Password & "; Connect Timeout = 15"

Plus the port number 1433 is not used, the brothers save me, let me get out of the sea soon!

Very urgent!

转载请注明原文地址:https://www.9cbs.com/read-112287.html

New Post(0)