读书人

同步后, 对表操作时出现: The updatel

发布时间: 2012-01-24 23:11:54 作者: rapoo

同步后, 对表操作时出现: The updatelineage function requires 2 arguments. ( 顶也有分!)
大家好!我的数据库同步时一切正常, 备份后, 建立新库, 恢复备份后, 为什么有几个表无法添加,修改及删除? ( 绝大部分表是可能用的 )

比如:
update Sales_Object
set [Description]= 'NOKIA 5500 MOBILE HANDSET '
where SalesObjectCode= 'NOK5500 '
会提示:
Server: Msg 174, Level 15, State 1, Procedure upd_D0C49ED8F63A41AB9C408027F852BCFF, Line 50
The updatelineage function requires 2 arguments.
Server: Msg 195, Level 15, State 1, Procedure upd_D0C49ED8F63A41AB9C408027F852BCFF, Line 56
'GETMAXVERSION ' is not a recognized function name.
Server: Msg 174, Level 15, State 1, Procedure upd_D0C49ED8F63A41AB9C408027F852BCFF, Line 61
The updatelineage function requires 2 arguments.
Server: Msg 156, Level 15, State 1, Procedure upd_D0C49ED8F63A41AB9C408027F852BCFF, Line 70
Incorrect syntax near the keyword 'as '.


先谢谢大家! 顶也有分!


[解决办法]
因为[Description] 或 SalesObjectCode 不是字符传类型

传值有问题
[解决办法]
Sales_Object表有update触发器吗?
[解决办法]
行以下代,看看有有,如果有,就要去查器中的代了。

-- Disable the trigger.
ALTER TABLE Sales_Object DISABLE TRIGGER all
GO
-- Test
update Sales_Object
set [Description]= 'NOKIA 5500 MOBILE HANDSET '
where SalesObjectCode= 'NOK5500 '
GO
-- Re-enable the trigger.
ALTER TABLE Sales_Object ENABLE TRIGGER all
GO
[解决办法]
insert 器
[解决办法]
触发器代码有问题。


把触发器中代码拷出来,加上更新条件,执行看看有没有错误。

读书人网 >SQL Server

热点推荐