Generate Script Ins/Upd SP Syntax Issue

Discussion of open issues, suggestions and bugs regarding database management and development tools for SQL Server
Post Reply
papker
Posts: 4
Joined: Mon 06 Feb 2017 18:44

Generate Script Ins/Upd SP Syntax Issue

Post by papker » Wed 15 Feb 2017 16:59

I tried the option "Generate Script As" - "Insert/Update Stored Procedure" and noticed it is generating with a syntax problem.

The table name is "Communications" and so the SP name that it generates is "communications_IU" which is fine, however the update statement uses the SP name instead of the table name in the query.

eg.

Code: Select all

IF EXISTS
  (SELECT * FROM dbo.communications WHERE Pk = @Pk)
    UPDATE communications_IU SET
      Direction = ....
should be .....

Code: Select all

IF EXISTS
  (SELECT * FROM dbo.communications WHERE Pk = @Pk)
    UPDATE communications SET
      Direction = ....
version 5.4.215

alexa

Re: Generate Script Ins/Upd SP Syntax Issue

Post by alexa » Thu 16 Feb 2017 10:16

We will fix this issue in one of the next product builds and will notify you once it's available for downloading.

Post Reply