IBM Database Add-Ins for Visual Studio  

Creating SQL and SPL Functions from Existing Functions

If you want to create an SQL or SPL function that is similar to an SQL function in your IBM® database, you can base the new function on the existing function definition.

To create an SQL or SPL function from an existing function:

  1. In the Server Explorer under your IBM data connection, expand the Functions folder.
  2. Right-click the function that you want to use as the basis for the new function, and then select Clone Definition on the shortcut menu.

    The IBM Function Designer opens, with the information for the selected function displayed in the fields of the designer. The values in the Function name and Specific name fields contain an incremental numeric suffix.

  3. Change, add, or delete the information in the views of the designer to define the new function.

    For detailed information about the fields in the designer views, see IBM Function Designer.

  4. Save the function definition.

    The SQL or SPL function is created and added to your database.

  5. Close the designer.

See Also

Developing IBM Database Functions | IBM Database Functions | Managing Procedures, Functions, and Objects


.NET Development Forum   DB2 FAQs   IDS FAQs

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