sql server - Error next '=' after update statement in T.SQL -


I am trying to execute a trigger, and I have the following error associated with this part of my script: < / p>

  EXEC (N'update CMDB2 '+' _CI_ '+ @CI_TYPE_ID) SET STATUS =' RESERVE 'where Num__UGLJ_ro__bde__bs__UGLJ_rie = @Rariable and STATUS =' n stock '  

Error:

Message 102, Niveau 15, A1, Process 1 CHANGEMENT_ETAT_CI_EN reservation, Ligne 58
Syntax wrong behavior '='.

After the set order

If I specify the table name correctly in the update statement then everything goes fine, otherwise if I specify the table name as the contracted string and

this code >

SET STATUS = 'RESERVE' WHERE NUM__UGLJ_RO__bde__bs__bs__UGLJ_rie = @Rariable and STATUS = 'n stock'

IDE is out of F statement

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -