Re: Recordset updating problem
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Sat, 23 Apr 2005 09:01:16 -0400
PO wrote:
> Hi!
>
> I use the following script to retrieve records from a Oracle db:
>
> <%
> Dim cn, rs, strSQL
..inetserver.asp.db would have been a better group to ask this question.
However, see below:
>
> strSQL = "SELECT W.WNO, W.ADM FROM APP.WORKTYPE W WHERE W.ADM = 'Y'"
>
> Set cn = Server.CreateObject("ADODB.Connection")
> cn.open "DSN=PROD;UID=" & Session("strUID") & ";PWD=" &
> Session("strPWD")
>
> Set rs = Server.CreateObject("ADODB.Recordset")
> Set rs = cn.Execute(strSQL)
> %>
>
> The code above works fine. However database changes are not reflected
> immediately in my webreport (even after the webpage is re-run). It
> takes about 1 minute before the changes are reflected in the report.
> When running the same query from an SQL-editor (SQL Work***) the
> updates are however shown immediately.
>
> Why does the query run from the webpage not reflect the db-changes
> immediately?
If this was Jet, then I would say you were running into the delayed-write
behavior. Since it's Oracle, I see only one answer:
Caching. See:
http://www.aspfaq.com/show.asp?id=2022
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- References:
- Recordset updating problem
- From: PO
- Recordset updating problem
- Prev by Date: Remote computer name with no netBIOS
- Next by Date: Re: Remote computer name with no netBIOS
- Previous by thread: Recordset updating problem
- Next by thread: Remote computer name with no netBIOS
- Index(es):