DB2 - Problem description
Problem IC63203 | Status: Closed |
SAVING/UPDATING AN EXISTING STORED PROCEDURE ON DB2 FOR Z/OS MIG HT FAIL WITH A SYNTAX ERROR WHEN USING VISUAL STUDIO .NET ADDINS | |
product: | |
DB2 CONNECT / DB2CONNCT / 970 - DB2 | |
Problem description: | |
When using the Visual Studio .NET add-ins (VSAI) to update an existing stored procedure on DB2 for z/OS, the stored procedure may fail to compile with a syntax error. . This would happen for example if you went into "Open Defintion" from the Server Explorer of a stored procedure, then modified a property of the stored procedure, and clicked on "Save". The problem would happen if the "SQL Body" frame contained the entire "CREATE PROCEDURE" statement instead of the "SQL Body". . Because the "SQL Body" frame shows the entire CREATE PROCEDURE statement, the syntax of the new "CREATE PROCEDURE" statement that is built by VSAI will contain a "CREATE PROCEDURE" statement embedded inside the main "CREATE PROCEDURE" statement, which would cause the SQL compiler to fail. | |
Problem Summary: | |
Users Affected: Visual Studio .NET addin users Problem Description: When using the Visual Studio .NET add-ins (VSAI) to update an existing stored procedure on DB2 for z/OS, the stored procedure may fail to compile with a syntax error. | |
Local Fix: | |
Change the "SQL Body" frame by only including the SQL Body portion of the stored procedure. The SQL Body is the code block between the "BEGIN" and "END". The BEGIN and END need to be included as well. | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 1 for Linux, UNIX, and Windows | |
Solution | |
First fixed in DB2 UDB Version 9.7, Fixpak 1 | |
Workaround | |
see LOCAL FIX | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 15.09.2009 22.12.2009 22.12.2009 |
Problem solved at the following versions (IBM BugInfos) | |
9.7. | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.1 |