Salve ho un db MySql,
se esegui la stringa su phpMyAdmin:
funziona.codice:SELECT COUNT (*) AS int_contatore FROM tabella WHERE campo1 = 'True'
Quando passo allo script ASP
Mi restituisce un errore di tipo "SQL syntax" sulla riga 71.codice:str_sql = "SELECT COUNT (*) AS int_contatore FROM tabella " str_sql = str_sql & "WHERE campo1 = 'True' " SET obj_rs=server.createobject("adodb.recordset") obj_rs.open str_sql, obj_conn, 0, 1 'Linea 71
Qualcuno sa aiutarmi? Grazie.

Rispondi quotando