Yes... Of course - @@Identity won't come back without an alias... Nor will scope_identity()
Perhaps this is one of those settings that defaults on the server or in the driver and therefore it could blow up if the setting is changed. I could swear that I had to set it OFF in order to get back @@Identity. I've been doing it since CF 4.x. But perhaps I just borrowed it from Query analyzer or a stored proc or something. -Mark -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 12:03 PM To: CF-Talk Subject: RE: CFQueryParam apostrophe problem when using SET NOCOUNT > It could be that you're using ODBC. I usually use jdbc and most > versions I've used won't return the second SELECT to cfquery unless I > use SET NOCOUNT. I assume its because cfquery detects the first > resultset (ie rows affected by the > insert) and ignores any further resultsets. Perhaps ODBC behaves > differently? It's worked fine for me with ODBC and JDBC. The INSERT doesn't return a recordset, the SELECT does. I may well have just been extremely lucky, I guess, but I wouldn't think this is required. You are aliasing the @@IDENTITY value, right? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292149 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4