首先,要为访问的数据库建一个ODBC数据源;
其次,在DB profile图标中,选择ODBC,右击新增连接文件,在弹出的窗口中,选择数据源、输入用户、密码,这样就可以了
// Profile fsyy
SQLCA.DBMS = "MSS Microsoft SQL Server"
SQLCA.Database = "hisrun"
SQLCA.LogPass = <******>
SQLCA.ServerName = "."
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = ""