以前写的一个分页存储过程,刚才不小心翻出来的
CREATE PROCEDURE GoalerPageSp@IntPageSize int,@IntCurrPage int,@strFields nvarchar(2000),@strTable varchar(200),@strWhere varchar(800),@strOrderType v
CREATE PROCEDURE GoalerPageSp@IntPageSize int,@IntCurrPage int,@strFields nvarchar(2000),@strTable varchar(200),@strWhere varchar(800),@strOrderType v
List the Stored Procedures in a SQL Server database. Supported Platforms SQL Server 2000Yes Script Code strDBServerName = "." strDBName = "Northwind"
实现代码如下:Create procedure sp_pageQuery@sqlstr nvarchar(4000), @page_index int, @page_size int , @rec_count int out -- asset nocount ondeclare @cursor_id