> 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:292145 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4