The IBM® Database Add-Ins for Visual Studio simplify the process of creating DB2® Common Language Runtime (CLR) procedures by providing a wizard to help you convert existing C# or Visual Basic methods into DB2 Universal Database procedures. With the DB2 CLR Procedure wizard, you can choose an existing C# or Visual Basic method from an IBM database project. Using the wizard, you can specify the parameters and additional options and customize the generated source code by specifying files that contain specific code fragments.
Note: You can create DB2 CLR procedures only on a DB2 for Linux®, UNIX®, and Windows®, Version 9 or later data server.
To create a DB2 CLR procedure from an IBM database project by using the wizard (from the Solution Explorer):
The DB2 CLR Procedure Wizard opens.
For detailed information about fields in the wizard, see DB2 CLR Procedure Wizard.
The DB2 CLR procedure file is created and added to your project.
To create a DB2 CLR procedure by using the wizard (from the Server Explorer):
The DB2 CLR Procedure Wizard opens. For detailed information about fields in the wizard, see DB2 CLR Procedure Wizard.
Based on the options that you select on the Project Selection page in the wizard:
Developing DB2 CLR Procedures | DB2 CLR Procedures | Changing DB2 CLR Assembly Properties | Managing Procedures, Functions, and Objects