IBM Database Add-Ins for Visual Studio  

Exporting Result Data from Procedures and Functions

With the IBM® Database Add-Ins for Visual Studio, you can export to a file the data that results from running a procedure or function. You can specify one of the three following file types for the exported data:

For a DB2 database If the result data that you want to export contains one or more columns of XML data, the export file type that you select determines how the data is exported.

After you export the result data to a file, you can use the data in an external application.

Requirement: The procedure or function whose result data you want to export must be run, and the result data must be displayed in the IBM Data Designer. For detailed steps on this process, see Running Procedures or Functions.

To export the data that results from running a procedure or function:

  1. In the Data view of the IBM Data Designer, click Export.
  2. In the Save As window, specify the directory in which you want to save the file, type a name for the file, select the file type, and then click Save.

    The data that is displayed in the Result Data section of the Data view is saved in the directory and file that you specified, with the format that you selected.

See Also

Managing Procedures, Functions, and Objects | Developing IBM Database SQL and SPL Procedures | Developing IBM Database Functions | IBM Data Designer


.NET Development Forum   DB2 FAQs   IDS FAQs

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