Forum Moderators: open

Message Too Old, No Replies

ASP connection to MySQL

What is the best connection type? Why?

         

Night_Hawk

11:27 pm on Jan 31, 2003 (gmt 0)

10+ Year Member



I want to connect to MYSQL database from ASP.
Which connection type should i use and why?
I am looking for speed and less strain on the server.
Thanks.

AJ

wardbekker

11:44 pm on Jan 31, 2003 (gmt 0)

10+ Year Member



Night_Hawk,

I don't know about performance, but you could use the mySql ODBC driver. Visit [mysql.com...] for the driver.

duckhunter

4:27 am on Feb 1, 2003 (gmt 0)

10+ Year Member



Night_Hawk,
If you have ADO with an OLEDB provider, that is the way to go. ODBC adds a layer of overhead. You'll find connection pooling runs smoother using OLE vs ODBC too.

Something like this: strConnect = "Provider=MySQLProv;Data Source=mySQLDB;User Id=myUsername;Password=myPassword;"

I use SQL and my provider is SQLOLEDB. I'm trying to find the MySQL one.