Viewing 7 posts - 1 through 8 (of 8 total)
i am just passing null to @WhereConditions.
i am executing the Sp just right-clicking the procedure and execute inside VS2005.
November 15, 2007 at 12:41 am
yes u r right its working but when i add @WhereConditions then it does not work.
.............................
declare @sql nvarchar(400);
declare @test-2 int;
set @sql = 'Select @count = Count(*) From classifieds_Ads
Where AdStatus=100 '...
November 15, 2007 at 12:32 am
still not working. return @NewClassifiedsCount = 0
November 15, 2007 at 12:09 am
Still not working. @NewClassifiedsCount is 0 always
..............................................................
ALTER PROCEDURE dbo.SP_NewClassifiedsMain
@PageIndex INT,
@NumRows INT,
@NewClassifiedsCount INT OUTPUT,
@WhereConditions varchar(200)
AS
BEGIN
declare @sql nvarchar(400);
declare @test-2 int;
set @sql = 'Select @test-2 = Count(*) From classifieds_Ads
Where AdStatus=100 ' + @WhereConditions
exec...
November 14, 2007 at 10:34 pm
Viewing 7 posts - 1 through 8 (of 8 total)