This does work properly in SQL Server, right?  I mean we haven't seen any
issues, but I'd hate to think that we have a bug in our code...

Does the same syntax work in oracle? What kind of situations could cause
this to not work properly?

Russ 

-----Original Message-----
From: Aaron Rouse [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 11, 2005 11:45 AM
To: CF-Talk
Subject: Re: retrieve ID from db insert

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
> 
>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211549
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

Reply via email to