Dave,

I have always used the "SET NOCOUNT" when doing an insert followed by a
select - especially if there is a logic block in the query. But you make me
wonder if that choice was superflous.

-mark 

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 10:11 AM
To: CF-Talk
Subject: RE: CFQueryParam apostrophe problem when using SET NOCOUNT

> Interestingly enough, I tried running the query without SET NOCOUNT 
> and it seems to be working fine (with @@IDENTITY and
> SCOPE_IDENTITY() ).  So now I'm confused by the need for it.  
> Have later versions of CF learned how to deal the extra data?

I've never had to use SET NOCOUNT with @@IDENTITY or SCOPE_IDENTITY(). I've
been using INSERT INTO followed by SELECT ... @@IDENTITY since SQL Server
6.5 and CF 1.5.

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!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292144
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to