>My original query was something like this:
>
><cfquery name="someqry" datasource="somedns">
>Insert into sometable (somefields) 
>Select somefields from someothertable
>Select SCOPE_IDENTITY() as someid
>Where someID=<cfqueryparam cfsqltype="cf_sql_integer"
>value="#arguments.someId#">
></cfquery>


Is there a typo in there? You have got the WHERE clause after the 
SCOPE_IDENTITY(). I would not expect that to work even with MX7. Do you mean 
this?  

SET NOCOUNT ON
Insert into sometable (somefields) 
Select somefields from someothertable
Where someID=<cfqueryparam cfsqltype="cf_sql_integer"
value="#arguments.someId#">
Select SCOPE_IDENTITY() as someid
SET NOCOUNT OFF



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299143
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