IBM Database Add-Ins for Visual Studio  

Deploying SQL Procedures to Databases  (DB2 for z/OS)

You can use the IBM Database Add-Ins for Visual Studio to deploy native SQL procedures to a DB2® for z/OS® database. The source and target databases for the deployment must both be on a DB2 for z/OS Version 9.1 or later server.

You can deploy a native SQL procedure in one of two ways:

You can also deploy versions of native SQL procedures to a database in the same way that you deploy SQL procedures.

To deploy an SQL procedure to a database:

  1. In the Server Explorer under your DB2 for z/OS data connection, right-click the native SQL procedure that you want to deploy, and then select Deploy on the shortcut menu.

    The Deploy Routines window opens.

  2. In the Location list, select an existing data connection for the target, or select New to define a new target connection in the Add Connection window.
  3. Select the collection ID for deploying the procedure.
  4. Optional: Specify the database schema for the deployed procedure.
  5. Click OK to close the Deploy Routines window.

The deploy process begins. You can view the progress and messages in the IBM Output Message Pane. After the procedure is deployed, you can refresh the Procedures node under the target data connection in the Server Explorer view to verify that the procedure was added to the server.


See Also

Managing Procedures, Functions, and Objects


.NET Development Forum   developerWorks: Visual Studio .NET   DB2 FAQs

© Copyright IBM Corporation 2002, 2012. All Rights Reserved.