Ciao, ho un problema su una pagina ASP che si connette ad un db Mysql.
L'errore che ricevo è questo:
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
L'errore nella Pagina ASP è riga 23
Il codice della pagina indicato dall'errore è questo:
Response.Buffer = true
Dim catid, strcat
catid = 1
strcat = Request.QueryString ("cat")
If catid = "" OR (IsNumeric(catid) = false) Then
Response.Redirect "index.asp"
End if
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")
Da sottolineare che la pagina era prima funzionante (ed è funzionante se la collego ad Access) e si collegava prima ad un db Access che ho trasformato in Mysql per migliori prestazioni, e si collegava al db Access con il metodo: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" ecc...eccc..
Ho cambiato la stringa di connessione e ricostruito il db in Mysql ma ricevo l'errore sopra riportato. Qualcuno può dirmi qualcosa?
Grazie![]()