Can we see your code?

-----Original Message-----
From: mi com [mailto:[EMAIL PROTECTED]
Sent: 06 December 2006 20:29
To: CF-Newbie
Subject: database updates don't appear immediately


using cfmx7 and mssql2005

i write a value to the database in one query and then immediately read it
back out in another query and it hasn't been updated.

if i manually wait a couple seconds then run the query again it comes back
correct

i am not using any query caching features

is there any way to guarantee that the query and database are always
current?

i've tried:
<cfcache action="flush">

and

<cflock name="serviceFactory" type="exclusive" timeout="10">
  <cfscript>
    factory = CreateObject("java", "coldfusion.server.ServiceFactory");
    ds_service = factory.datasourceservice;
    ds_service.purgeQueryCache();
  </cfscript>
</cflock>

but neither made any difference

thanks


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2319
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to