ciao aiutooooooo

questa striga:

codice:
SQL="SELECT * FROM "&tabella&""
Set rec = Server.CreateObject("ADODB.Recordset")
Set Rec=Conn.Execute(SQL)
While Not rec.EOF
dim ragsoc
ragsoc = rec("ragionesociale")


codice:
    <% rec.MoveNext
Wend
rec.close%>
L'errore è generico e non mi viene restituito su nessuna linea.
Come devo fare?