|
It is a remote server, the server address is correct, because it is normal to use on many other computers, and the ODBC configuration method is the same;
The IP address is better than the database server name, but I also tried to use the server name, and I still ca n’t connect
Odbc connection should be no problem, I have reinstalled ODBC, if there is a problem with odbc, other computers will not run.
So I don't think it's a system or odbc problem, is there any problem with the settings on the installed computer?
Attached connection string:
Public Const DB_DSN = "SQL10"
Public Const DB_SERVER = "EDPSQL10"
Public Const DB_NAME = "MPEPWI"
Public Const DB_UID = "APPS_MPEPWI"
Public Const DB_UIDPWD = "0408191047"
Public Const DB_BAKPWD = "mpepwiback"
...
Set g_objDBService = New UD_Utility.DBService
With g_objDBService
.DSN = DB_DSN
.Server = DB_SERVER
.LoginID = DB_UID
.Password = DB_UIDPWD
.Database = DB_NAME
.Connect Driver_SQLServer
End With
... |
|