我下载了AspNetPager 7.2 ,通过控件自带存储过程生成的SQL语句,总是不能执行,请问,是不是aspnetpager7.2不支持sql2000啊?
生成的sql代码如下:
create procedure p_dep_pager 
(@startIndex int,
@endIndex int,
@docount bit)
asif(@docount=1)
select count(*) from dep
else
begin
 with temptbl as (
SELECT ROW_NUMBER() OVER (ORDER BY id desc)AS Row, * from dep )
 SELECT * FROM temptbl where Row between @startIndex and @endIndex
end执行结果:
服务器: 消息 156,级别 15,状态 1,过程 p_dep_pager,行 11
在关键字 'with' 附近有语法错误。
服务器: 消息 195,级别 15,状态 1,过程 p_dep_pager,行 12
'ROW_NUMBER' 不是可以识别的 函数名。
服务器: 消息 156,级别 15,状态 1,过程 p_dep_pager,行 14
在关键字 'end' 附近有语法错误。
请各位朋友指点,谢谢了!