Home > Software engineering >  VB6 how to access the Internet domain name of SQL server, the port is not 1433, becomes: 1466
VB6 how to access the Internet domain name of SQL server, the port is not 1433, becomes: 1466

Time:10-05

VB6 how to access the Internet domain name of SQL server, the port is not 1433, becomes: 1466
Domains in the dynamic analysis, had better use ADO connection
Superior to method, thank you!

CodePudding user response:

 Dim cn As ADODB. Connection 
Set the cn=New ADODB. Connection
Cn. Open "Driver={SQL Server};=domain name Server, 1466; The Database=Database name; Uid=*; The Pwd=*."

CodePudding user response:

Leave a mark, and future reference
  • Related