and you do not need cftansaction either. once query 1 executes, you have the id in hand. if another request came in it would get a differnt id. simply based on the uniqueness of the sequence.
DK On 7/11/05, Greg Morphis <[EMAIL PROTECTED]> wrote: > > Like Doug suggested, I've found the best way to do this is 2 queries.. > First > <cfquery name="foo" datasource="#ds#"> > select game_id.nextval as id from dual > </cfquery> > > Then store that value in a session variable or however you want to. > Then you can use that to insert into different queries. > > > > On 7/11/05, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > I have yet to see a way of doing this in Oracle/CFQUERY that works in > all > > situations. Actually I have yet to see it work, but have heard of it > working > > which is why I put "situations" > > > > On 7/11/05, Russ <[EMAIL PROTECTED]> wrote: > > > > > > Why not just do something like this (sql server) > > > > > > Insert into table (cols) values (values) > > > select @@IDENTITY as maxid > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211561 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

