Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.
ALTER PROCEDURE IMINVLOC_SQL_Paged @Where varchar(2000) = NULL, @OrderBy varchar(2000) = NULL, @PageIndex int, @PageSize int AS BEGIN DECLARE @SQL nvarchar(2000) DECLARE @Count int SELECT @Count = (SELECT COUNT(*) FROM IMINVLOC_SQL) DECLARE @StartRowIndex int SET @StartRowIndex = (@PageIndex * @PageSize) + 1; WITH Results AS ( SELECT ROW_NUMBER() OVER (ORDER BY Item_No ASC) AS Row, Item_No, Item_Filler, Std_Cost FROM IMINVLOC_SQL ) SELECT Item_No, Item_Filler, Std_Cost, @Count As TotalRecords FROM Results WHERE Row BETWEEN @StartRowIndex AND @StartRowIndex + @PageSize - 1 END
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.