Why not just do something like this (sql server)

Insert into table (cols) values (values)
select @@IDENTITY as maxid

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

I don't know SPs yet, but that's an interesting idea.  I'll have to look
into that when I get time.

>Or if you wanted to do it all in one "tag" you could just put it into a SP 
>and run it that way. There are of course various views as to the added 
>advantage of doing this, you can swearch through the list archives for all 
>of those. :)



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:211541
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to