The IBM® Database Add-Ins for Visual Studio simplify the process of creating and testing procedures. You can use one of the following tools to create an SQL or SPL procedure:
With the designer, you name the procedure, define the structure, and specify the parameters and additional options. You also can customize the generated source code by specifying files that contain specific code fragments.
Important: If you use Visual Studio 2008, do not create stored procedures with names that are longer than 39 characters. Stored procedures with names that are longer than 39 characters can cause errors when you use the Visual Studio 2008 debugger and other components.
For SQL procedures, you can specify and include the following code fragments:
header, variables declaration, exception handlers, and statements that precede
the END statement.
With the designer, you also can specify access privileges for the procedure.
Creating overloaded procedures that are based on data type produces undefined
results.
To create an SQL or SPL procedure by using the designer:
The IBM Procedure Designer opens.
For detailed information about the fields in the designer views, see IBM Procedure Designer.
The procedure definition script is run against the database and the procedure is created.
To create an SQL or SOL procedure by using the editor:
The Add New Item window opens.
A new procedure file with a basic structure is created and added to your project.
Developing IBM Database SQL and SPL Procedures | DB2 SQL Procedures | IDS SPL Procedures | Changing SQL and SPL Procedure Properties | Managing Procedures, Functions, and Objects