在存储过程中,执行完插入语句之后
(@id已经在之前声明了)SET @id = @@IDENTITYRETURN @id这样执行之后,得到如下错误:
Arithmetic overflow error converting expression to data type int.
The 'SP_AddToMain' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead. 而在数据库中数据已经插入成功了,但是还是返回了这个错误  :(  是不是我见的表有问题?
表内有个Unique字段