Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@@rowcount and @@identity

Status
Not open for further replies.

lwfg

Programmer
Feb 9, 2009
52
US
When using cfstoredproc and a sql server stored procedure, I can return @@identity and @@rowcount together using cfprocparams of type out. Then I can cfoutput them both together.

WHen using cfquery and
insert ...etc
select @@identity as recno
select @@rowcount as reccount
thequeryname.reccount is undefined-I can't cfoutput it.

Is there a way to get both recno and reccount without a stored procedure?
 
select @@identity as recno,@@rowcount as reccount
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top