Posted on: 3/25/2014 12:46:41 AM | Views : 684

I Am getting error as Must declare the scalar variable "@Imageid" for the following code,while executing,
exec spGetPager  ' ' , ' ', ' 3 ', ' '
In my coding I pass querystring value like 1,2,3 etc
CREATE PROCEDURE spGetPager       @PageNo int = 1,         @ItemsPerPage int = 1,    @Imageid int,       @TotalRows int out   AS   BEGIN     SET NOCOUNT ON     DECLARE       @StartIdx int,       @SQL nvarchar(max),        @SQL_Conditions nvarchar(max),        @EndIdx int       IF @PageNo < 1 SET @PageNo = 1         IF @ItemsPerPage < 1 SET @ItemsPerPage = 10         SET @StartIdx = (@PageNo ...

Go to the complete details ...