我下载了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' 附近有语法错误。
请各位朋友指点,谢谢了!
生成的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' 附近有语法错误。
请各位朋友指点,谢谢了!
解决方案 »
- 大家帮忙投票下,投者送分,
- 如何得到淘宝产品描述中“收藏件数”
- WebPart使用问题
- asp.net 中AJAX的问题
- 提问,用程序绑定GridView,如何使用<PagerTemplate>用程序控制Pageindex实现分页?
- IIS 中没有将虚拟目录配置为应用程序??请帅哥美女们救救我……
- 请教这段C#代码的含义,越细越好!
- 鲜花网站毕业设计,求大神指点
- 花店开张,普天同庆!!!
- 我昨天问过一次了,&,+只能连接string类型吗,请问byte还有byte()有什么办法来连接。我的分数很少,昨天送出去40分了。如果你的回答对大
- 求助,StreamWriter的一个问题
- 关于threading timer的使用问题
SELECT ROW_NUMBER() OVER 不支持sql 2000