同步后, 对表操作时出现: 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 觸發器
------解决方案--------------------触发器代码有问题。     
 把触发器中代码拷出来,加上更新条件,执行看看有没有错误。