Groups | Blog | Home
all groups > inetserver asp db > february 2005 >

inetserver asp db : error when changing from Access to MySQL



Sylvain Lafontaine
2/18/2005 1:22:38 AM
You should try to find a more recent driver for MySQL - like an OLEDB
provider - than an ODBC Driver 3.51. This is very old stuff.

Otherwise, you may try with other parameters than 1 & 3. Your SQL query
might also be in cause here.

Finally, this has more to do with MySQL than with ASP; you should ask your
question to a more appropriate newsgroup if you want to receive some good
answers.

S. L.

[quoted text, click to view]

TB
2/18/2005 2:35:23 AM
I am in the process of migrating from Access to MySQL

I have already exported the data and the structure of the database and
changed the connection string to:

<%
set Conn = server.CreateObject("ADODB.connection")
Conn.open "driver={MySQL ODBC 3.51
Driver};server=mysql.domain.com;uid=user;pwd=pw;database=database"
%>

However I have found that the following code, which works perfectly with
Access, produces an error with MySQL:

<%
RS.Open strSQL, Conn, 1,3
%>

The error message is:

"Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties. "

Any advice would be greatly appreciated.

Thanks

TB


jeff.nospam NO[at]SPAM zina.com
2/18/2005 11:56:20 AM
On Fri, 18 Feb 2005 02:35:23 +0100, "TB"
[quoted text, click to view]

Stop using ODBC:

http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForMySQL

TB
2/18/2005 5:03:07 PM
I only agree with you half of the way: My question does not have a lot to
with ASP - but I couldn't know that beforehand. Secondly, the name of this
newsgroup terminates en "db", which means that we should be able discuss any
ASP-database related question, not just those related to Access or SQL
server.

TB

"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
[quoted text, click to view]

TB
2/18/2005 5:04:01 PM
I have followed your advice:
<%
set Conn=server.createobject("ADODB.connection")
Conn.open "Provider=MySQLProv;Location=mysql.domain.com;Data
Source=database;UserId=user;Password=pw;"
%>

And it now it works. Thanks.

TB

[quoted text, click to view]

AddThis Social Bookmark Button