Database Toolbox Previous page   Next Page
procedures

Get catalog's stored procedures

Syntax

Description

p = procedures(dbmeta, 'cata') returns the stored procedures in the catalog cata, for the database whose database metadata object is dbmeta, which was created using dmd.

p = procedures(dbmeta, 'cata', 'sch') returns the stored procedures in the schema sch, of the catalog cata, for the database whose database metadata object is dbmeta, which was created using dmd.

Stored procedures are SQL statements that are saved with the database. You can use the exec function to run a stored procedure, providing the stored procedure as the sqlquery argument instead of actually entering the sqlquery statement as the argument.

Examples

Type

where dbmeta is the database metadata object and the catalog is DBA. MATLAB returns the names of the stored procedures

Execute the stored procedure sp_customer_list for the database connection conn and fetch all of the data. Type

MATLAB returns

View the results by typing

MATLAB returns

See Also
dmd, exec, get, procedurecolumns


Previous page  procedurecolumns querybuilder Next page

© 1994-2005 The MathWorks, Inc.