There's nothing wrong with using identity fields with Fusebox. Some people
prefer to set their own, but that has nothing to do with Fusebox.
Hal Helms
== See www.ColdFusionTraining.com for info on "Best Practices with
ColdFusion & Fusebox" training, Jan 22-25 ==
-----Original Message-----
From: Jeff Stone [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 30, 2000 11:26 PM
To: Fusebox
Subject: Identity Field Question
I know it is a taboo to use Identity fields in SQL Server with Fusebox, but
if I were using Identity fields, how could I return the last inserted ID
without having to run another query? In a stored procedure in SQL Server,
you can refer to the @@Identity property to return the last ID inserted into
the table's identity field. Is there any way to do this in ColdFusion? I
am trying to keep from writing two queries, and also don't want to write a
stored procedure. In the past, I thought I read that this could be done.
Anyone done this before?
Thanks,
Jeff Stone
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists