雪地跪求。。在线等。。

zhongyucai 2009-11-24 04:27:01
use mytaobao
go
create proc insert_apparise11
@productID int , @costomID int,
@react int, @descr nchar(255)
as
begin transaction
declare @shopID int
select @shopID = (select shopID from product where ID=@productID)

insert into appraise (productID,costomID,react,descr,date ) values(@productID,
@costomID, @react, @descr, getDate())
if(@react=0)update shop set trust=trust+1 where ID = @shopID
commit transaction

创建存储过程成功,但是不能执行。错误信息:消息 217,级别 16,状态 1,过程 insert_apparise0,第 14 行
超出了存储过程、函数、触发器或视图的最大嵌套层数(最大层数为 32)。
...全文
152 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
woshiyongkai 2009-11-26
  • 打赏
  • 举报
回复
我也碰见了,昨天还没事,今天就有事了,,,记得我昨天调sql的配置了,,忘了怎么配的啦。。。
你的环境有什么问题?我邮箱dingfly@126.com
zhongyucai 2009-11-24
  • 打赏
  • 举报
回复
语法什么都没有问题,只是我台机的环境问题。哈。。没事啦。。
zhongyucai 2009-11-24
  • 打赏
  • 举报
回复
我没有创建触发器,全部都是存储过程。
icelovey 2009-11-24
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 zhongyucai 的回复:]
自己顶一个。。
[/Quote]

是不是你appraise 上面有触发器》》》????
zhongyucai 2009-11-24
  • 打赏
  • 举报
回复
自己顶一个。。
chinaly 2009-11-24
  • 打赏
  • 举报
回复
没看出来有什么问题.
Dear SQL(燊) 2009-11-24
  • 打赏
  • 举报
回复
是不是有觸發器?
华夏小卒 2009-11-24
  • 打赏
  • 举报
回复
应该不是这边的问题
lweia 2009-11-24
  • 打赏
  • 举报
回复
能创建,
LZ 运行的脚本发出来 看看你运行的参数
zhongyucai 2009-11-24
  • 打赏
  • 举报
回复
use mytaobao
go
create proc insert_apparise
@productID int , @costomID int,
@react int, @descr nchar(255)
as
begin transaction
declare @shopID int
select @shopID = (select shopID from product where ID=@productID)

insert into appraise (productID,costomID,react,descr,date ) values(@productID,
@costomID, @react, @descr, getDate())
if(@react=0)update shop set trust=trust+1 where ID = @shopID
commit transaction

创建存储过程成功,但是不能执行。错误信息:消息 217,级别 16,状态 1,过程 insert_apparise,第 14 行
超出了存储过程、函数、触发器或视图的最大嵌套层数(最大层数为 32)。


不好意思。刚刚不错存储过程的名字啦。
aaajedll 2009-11-24
  • 打赏
  • 举报
回复
沒看明白,存儲過程名字不一樣?何解
icelovey 2009-11-24
  • 打赏
  • 举报
回复
楼主贴错代码了吧`呵呵
子陌红尘 2009-11-24
  • 打赏
  • 举报
回复
存储过程名是:insert_apparise11 ,提示出错的是:insert_apparise0
二者有什么关系?
icelovey 2009-11-24
  • 打赏
  • 举报
回复
没见哪里有循环啊? 有请楼下

27,579

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 应用实例
社区管理员
  • 应用实例社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧