MKrauss
asked on
Mysql select statement with vbscript
Hi,
i'm using vbscript and would like to know how i could do the following ado statement to a mysql
server:
'used on a ms sql:
Set objDBConnection = CreateObject("ADODB.Connec tion")
sConnectionString = "Provider=SQLOLEDB; Data Source=" & sSQLServer & "; Initial Catalog=" & sCatalog & "; User Id=user; Password=pass"
objDBConnection.Open sConnectionString
Set objRs = objDBConnection.Execute("S ELECT field FROM table order by arg")
objRs.movefirst
Do While Not objRs.EOF
.....
objRs.movenext
loop
Many thanks
Matt.
i'm using vbscript and would like to know how i could do the following ado statement to a mysql
server:
'used on a ms sql:
Set objDBConnection = CreateObject("ADODB.Connec
sConnectionString = "Provider=SQLOLEDB; Data Source=" & sSQLServer & "; Initial Catalog=" & sCatalog & "; User Id=user; Password=pass"
objDBConnection.Open sConnectionString
Set objRs = objDBConnection.Execute("S
objRs.movefirst
Do While Not objRs.EOF
.....
objRs.movenext
loop
Many thanks
Matt.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, this driver should compatible for latest mysql version 5.
ASKER
only for me if i follow in detail your given sample from
http://www.carlprothman.net/Default.aspx?tabid=90#ODBCDriverForMySQL
including all the options, guess that was the problem.
One more thing, will this work with the latest mysql version 5 as well ?