Se utilizzo una pagina asp e invio query sul database utilizzando la connessione che ho indicato per Mysql, mi resituisce i dati.

Ma io volevo sapere cosa c'è in questa pagina che non va, ossia questa porzione di codice asp:

Dim catname, productslist
sub productInfo(connObj,category)
q = chr(34)
set cmd = server.CreateObject("ADODB.Command")
cmd.ActiveConnection = connObj
cmd.CommandText = "lecategorie"
cmd.CommandType = adCmdStoredProc
set param = cmd.CreateParameter("categoria",adInteger,adParamI nput,4)
cmd.Parameters.Append(param)
cmd("categoria") = Cint(category)
set rs = server.CreateObject("ADODB.Recordset")
set rs = cmd.Execute '(QUESTA E LA RIGA 23)
if not rs.EOF then
catname = rs("descrizione")

...ha qualcosa che funziona se la pagina è collegata utilizzando la connessione: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" ecc...eccc..., mentre utilizzando la connessione:

sub openConn()
Set dbc = Server.CreateObject("ADODB.Connection")
strConn = " server=localhost;db=clienti;uid=username
;pwd=password;Driver=MySQL ODBC 3.51 Driver"
dbc.open strConn
end sub

...mi restituisce l'errore:

--> Microsoft OLE DB Provider for ODBC Drivers errore "80040e14"

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '{ call lecategorie(1) }' at line 1 -->

Boh!