ciao a tutti, questo è il codice che mi sta facendo uscire pazzo....
cerco di ricavare un recordset confrontando due diverse tabelle, in cui mi servono i dati assenti dal confronto.
se eseguo questo codice e cioè l'uguaglianza dei dati nelle due tabelle il codice fà il suo dovere, ma quando cambio l'uguaglianza in disuguaglianza avviene l'errore e no riesco a capire il perchè e come uscirne fuori, posto il codice:
<%
dim variabile
variabile = request.QueryString("lega")
%>
<%
dim portieri
cString1 = "Provider=sqloledb; Data Source=62.149.***.**; Initial Catalog=MSSql*****; User Id=*****; Password=***;"
Set objConn1=Server.CreateObject("ADODB.Connection")
objConn1.Open cstring1
Set rs1 = Server.CreateObject("ADODB.Recordset")
SQL1 = "select port1 as nome FROM presidenti where lega = '"&variabile&"' UNION select por2 as nome from presidenti where lega = '"&variabile&"' union select port3 as nome from presidenti where lega = '"&variabile&"'"
rs1.Open sql1, objConn1
Do until rs1.eof
portieri= rs1("nome")
%>
<%
cString = "Provider=sqloledb; Data Source=******; Initial Catalog=MSSql****; User Id=MSSql****; Password=******;"
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.Open cstring
Set rs = Server.CreateObject("ADODB.Recordset")
SQL = "select nome from lista_iniziale where nome [***=***] '"&portieri&"'"
rs.Open sql, objConn
%>
<%Do until rs.eof%>
<tr bgcolor="#EAF4FF">
<td width="44%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<%=rs("nome")%></font></td>
<td width="15%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="18%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
</font></td>
<td width="23%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="user_offerta.asp?name=<%=rs("nome")%>">Fai
una offerta</a> </font></td>
</tr>
<%
rs.movenext
loop
%>
<%
rs1.movenext
loop
%>
</table>
<%
'chiudo tutto
rs.close
set rs=nothing
objConn.close
set objconn=nothing
%>
<%
'chiudo tutto
rs1.close
set rs1=nothing
objConn1.close
set objconn1=nothing
%>
Cambiando in <> il simbolo uguale identificato tra asterischi e parentesi quadre mi dà questo errore:
Response object error 'ASP 0251 : 80004005'
Response Buffer Limit Exceeded
/user_svincolati.asp, line 0
Execution of the ASP page caused the Response Buffer to exceed its configured limit.
Perchè mi domando? come mai? dove sbaglio? aiutooooooooooooooooooooooooooooooooooooooooo
cerco di ricavare un recordset confrontando due diverse tabelle, in cui mi servono i dati assenti dal confronto.
se eseguo questo codice e cioè l'uguaglianza dei dati nelle due tabelle il codice fà il suo dovere, ma quando cambio l'uguaglianza in disuguaglianza avviene l'errore e no riesco a capire il perchè e come uscirne fuori, posto il codice:
<%
dim variabile
variabile = request.QueryString("lega")
%>
<%
dim portieri
cString1 = "Provider=sqloledb; Data Source=62.149.***.**; Initial Catalog=MSSql*****; User Id=*****; Password=***;"
Set objConn1=Server.CreateObject("ADODB.Connection")
objConn1.Open cstring1
Set rs1 = Server.CreateObject("ADODB.Recordset")
SQL1 = "select port1 as nome FROM presidenti where lega = '"&variabile&"' UNION select por2 as nome from presidenti where lega = '"&variabile&"' union select port3 as nome from presidenti where lega = '"&variabile&"'"
rs1.Open sql1, objConn1
Do until rs1.eof
portieri= rs1("nome")
%>
<%
cString = "Provider=sqloledb; Data Source=******; Initial Catalog=MSSql****; User Id=MSSql****; Password=******;"
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.Open cstring
Set rs = Server.CreateObject("ADODB.Recordset")
SQL = "select nome from lista_iniziale where nome [***=***] '"&portieri&"'"
rs.Open sql, objConn
%>
<%Do until rs.eof%>
<tr bgcolor="#EAF4FF">
<td width="44%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<%=rs("nome")%></font></td>
<td width="15%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="18%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
</font></td>
<td width="23%"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="user_offerta.asp?name=<%=rs("nome")%>">Fai
una offerta</a> </font></td>
</tr>
<%
rs.movenext
loop
%>
<%
rs1.movenext
loop
%>
</table>
<%
'chiudo tutto
rs.close
set rs=nothing
objConn.close
set objconn=nothing
%>
<%
'chiudo tutto
rs1.close
set rs1=nothing
objConn1.close
set objconn1=nothing
%>
Cambiando in <> il simbolo uguale identificato tra asterischi e parentesi quadre mi dà questo errore:
Response object error 'ASP 0251 : 80004005'
Response Buffer Limit Exceeded
/user_svincolati.asp, line 0
Execution of the ASP page caused the Response Buffer to exceed its configured limit.
Perchè mi domando? come mai? dove sbaglio? aiutooooooooooooooooooooooooooooooooooooooooo
Ultima modifica: