你要连什么数据库?
SQL Server
dim cn as new adodb.connection
cn.connectstring = "Driver = {sql server};server=服务器名;uid=sa;pwd=;database=master"
cn.open
dBASE IV
dim cn as new adodb.connection
cn.connectstring = "driver=Microsoft dBase Driver (*.dbf);DriverId=277;dbq="app.path
cn.open
cn.execute("create table tmp")
……