Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Counting records with COUNT(*)

Author  Topic 

cesark
Posting Yak Master

215 Posts

Posted - 2005-10-18 : 10:00:18
Somebody knows why this SP always returns @TotalRegisters = 0? Orders table has a lot of records..


USE market
GO
ALTER PROCEDURE test_dyn
@TotalRegisters int output
As
BEGIN
SET NOCOUNT ON

SELECT @TotalRegisters = COUNT(*) FROM Orders As Ord

SET NOCOUNT OFF
END
GO


Thank you,
Cesar

cesark
Posting Yak Master

215 Posts

Posted - 2005-10-18 : 10:18:20
Oh oh.. it was an ASP.NET problem

I' m sorry
Go to Top of Page
   

- Advertisement -