getting @@identity and @@rowcount
When I do this
<cfquery name="test" datasource="#ds#">
insert into tbltest (name,weight) values ('#thename#','#thewwight#')
select @@ as idadded
select @@rowcount as rowsadded
</cfquery>
<cfoutput>
#itest.idadded#,#test.rowsadded#
</cfoutput>
testtest.idadded shows but test.rowsadded is not defined-I get an error.
1) How do I get both test.idadded and test.rowsadded to show ?
2) If done with cfstoredproc and a stored procedure (sqlserver), both of the values show up. Why is this ?
