用直连试试
// Profile bzcb
SQLCA.DBMS = "MSS Microsoft SQL Server 6.x"
SQLCA.Database = "sdsdds"
SQLCA.LogPass = "****"
SQLCA.ServerName = "dsds4"
SQLCA.LogId = "dddd"
SQLCA.AutoCommit = False
SQLCA.DBParm = ""
// Profile bzcb
SQLCA.DBMS = "MSS Microsoft SQL Server 6.x"
SQLCA.Database = "sdsdds"
SQLCA.LogPass = "****"
SQLCA.ServerName = "dsds4"
SQLCA.LogId = "dddd"
SQLCA.AutoCommit = False
SQLCA.DBParm = ""
你先在“控制面板”中的ODBC管理中看能不能连接SQL SERVER。