谁能告诉我如何通过vb脚本连接infobright数据库。我已经写了一段代码,但它显示了一个错误:
provider can not be found.我写的代码是:
Option Explicit
Dim conn, sqlstr
sqlstr = "SELECT COLLATION_NAME FROM COLLATIONS"
'Database connection info
set Conn = CreateObject("ADODB.connection")
Conn.ConnectionTimeout = 30
Conn.CommandTimeout = 30
conn.open("Provider=Microsoft.Jet.OLEDB.4.0;Database=information_Schema;Username=root;Password=''")
dim showList
Set showList = conn.execute(sqlstr)
while not showList.eof
Wscript.echo "Collation Name:" & showList("COLLATION_NAME")
showList.MoveNext
WEND
conn.close发布于 2013-06-07 20:59:28
安装MySQL连接器/ODBC 5.1并使用如下连接字符串
connString = "Driver={MySQL ODBC 5.1 Driver};Server=ServerAddress;Database=DataBase;User=Username;Password=Password;“
https://stackoverflow.com/questions/16911392
复制相似问题