连接代码
其实SQL链接代码是:
ConnectStr = "Provider=SQLOLEDB.1;Persist Security Info=True;User Instance=True;User ID='" & UserID & "';Password='" & UserPassword & "';InitialCatalog='" & DatabaseName & "';Data Source='" & ServerName & "'"
MYSQL连接代码是:
ConnectStr = "DRIVER={MySQL ODBC 5.3 UNICODE Driver};SERVER=" & ServerName & ";DATABASE=" & DatabaseName & ";UID=" & UserID & ";PWD=" & UserPassword & ";OPTION=3;stmt=SET NAMES GB2312"
评论列表
我要评论