Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL database from vbscript; ODBC to MySQL

Status
Not open for further replies.

Shrp

IS-IT--Management
Jan 9, 2002
82
US
I have some vbscripts that query ODBC, but I want to
have it query some MySQL databases I have, instead.

Currently I have:

...
Set numConnection = Server.CreateObject("ADODB.Connection")
numConnection.Open "dbname"
NumQuery = "SELECT * from dbname WHERE field = " & Field1
Set rsNumList = numConnection.Execute(NumQuery)
...

How would these statements change with a MySQL database?

Overall, I wanted to find someone to host my web pages, but
find that ODBC is rarer and pricier and more places will
host MySQL, instead. So I wanted to migrate my pages from
ODBC to MySQL.

Thanks!
 
Hosting: Ophelus.com the owner of the company is doing the final testing of mysql and should be up with a day or so. But this host is the BEST, they off MSsql too. good pricing.


I wrote a tutorial on connecting to MySQL at pscode.com if you get a chance vote on it.. thanks ;)




www.vzio.com
star.gif
/ [wink]
 
You won't have to change much though, just the connection. www.vzio.com
star.gif
/ [wink]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top