set connection12= Server.CreateObject("ADODB.Connection")
Connection12.Open Application("Connection12_ConnectionString")
sql1="SELECT id, codice, valoreCONTROLLO FROM tabella_A LEFT JOIN tabella_B ON tabella_A.controllo = tabella_B.controllo WHERE (tabella_B.controllo IS NULL)"
set rs1=server.createobject("adodb.recordset")
rs1.open sql1, connection12,3,3
response.write(rs1.recordcount)
If not rs1.eof then
DO while not RS1.EOF
response.write(rs1("controllo"))
RS1.MOVENEXT
LOOP
else
response.write("Recordset vuoto.")
end if
%>

Rispondi quotando
