I call this code from a page via ajax and it does not pick up newly added records just the same old records over and over!
This is my server side script:
Code:
<!-- #include file = "DSN.asp" -->
<%
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.ActiveConnection = conn
rs.open ("SELECT top 1 time FROM calls INNER JOIN cliente INNER JOIN p1 ON cliente.id_cli = p1.clie INNER JOIN p2 ON p1.id_p1 = p2.p1 INNER JOIN p3 ON p2.id_p2 = p3.p2 INNER JOIN p4 ON p3.id_p3 = p4.p3 ON calls.number = p4.c2 WHERE(cliente.id_cli = 30) order by time desc")
Resp = rs.fields("time")
rs.close
Set rs = nothing
conn.close
Response.Write(Resp)
%>
When I go to this script via url the data is fresh and it poicks up any changes, however when I call it from the client it returns old data, it does not pick up new records, what is going on?
P.S. MSSQL Database.
|