Sandy
2006-11-04 19:33:01 UTC
Hello -
I have the following stored procedure and I'm trying to get the rowcount:
Create Procedure [dbo].[spLoansAllSearchDate]
@SearchFrom datetime,
@SearchTo datetime,
@RowCount int OUTPUT
As
Select l.LoanID, l.ApplicationNo, l.ApplicantName, l.DateOfAction,
<blah, blah, blah>
Order by l.DateOfAction ASC
Set @RowCount = @@ROWCOUNT
When I try to execute it, I am getting the following message:
"Procedure or Function 'spLoansAllSearchDate' expects parameter
'@RowCount', which was not supplied"
What am I doing wrong?
Any help will be greatly appreciated!
I have the following stored procedure and I'm trying to get the rowcount:
Create Procedure [dbo].[spLoansAllSearchDate]
@SearchFrom datetime,
@SearchTo datetime,
@RowCount int OUTPUT
As
Select l.LoanID, l.ApplicationNo, l.ApplicantName, l.DateOfAction,
<blah, blah, blah>
Order by l.DateOfAction ASC
Set @RowCount = @@ROWCOUNT
When I try to execute it, I am getting the following message:
"Procedure or Function 'spLoansAllSearchDate' expects parameter
'@RowCount', which was not supplied"
What am I doing wrong?
Any help will be greatly appreciated!
--
Sandy
Sandy