Thanks for your help, Old Pedant.
Infact, the syntax of this connectionstring is:
CN2.ConnectionString = "Driver={SQL Server};" & _
"Server=x.x.x.x;" & _
"Address=x.x.x.x,1433;" & _
"Network=DBMSSOCN;" & _
"Database=Pubs;" & _
"Uid=sa;" & _
"Pwd="
but I didn't connect with
CN2.ConnectionString = "Driver={SQL Server};" & _
"Server=222.252.96.159;" & _
"Address=222.252.96.159,1433;" & _
"Network=DBMSSOCN;" & _
"Database=Pubs;" & _
"Uid=sa;" & _
"Pwd="
or
CN2.ConnectionString = "Driver={SQL Server};" & _
"Server=10.0.0.3;" & _
"Address=10.0.0.3,1433;" & _
"Network=DBMSSOCN;" & _
"Database=Pubs;" & _
"Uid=sa;" & _
"Pwd="
so i tryed that. And the port of sql server is default (1433).
I worry about ado don't support this case. That is true ?
Tran Tuan An
|