If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Stored Procedures

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-03, 12:46
Chinmoy Chinmoy is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Stored Procedures

Hi,
I Want know, what exactly are the pre requisites for accessing a Stored Procedure from an Application. Can someone help me out with reagrds to how a Stored Procedure Name is formed, What are the tables on which we need to have an entry and how do we get authorized to call a stored procedure?
Reply With Quote
  #2 (permalink)  
Old 10-20-03, 08:30
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The Stored Procedure name is formed just like any other object in the database. It has a qualifier (schema) and its name. The Stored Procedures are in the system catalog and are maintained automatically by the database whenever they are created or dropped, so you do not need to know anything specific about how they are entered int the tables. To get authorized to call a Stored Procedure, you must be given the EXECUTE privilege. Look at the GRANT statement to see the proper way to to this. How it is called form the Application depends on the language the Application is written in.

HTH

Andy
Reply With Quote
  #3 (permalink)  
Old 10-21-03, 03:46
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
SYSCAT.PROCEDURES is the catalog view you will have to look for information ...
SYSCAT.PROCPARMS (have I spelt is right?) is another view ...

If you are on V8,

SYSCAT.ROUTINES and SYSCAT.ROUTINEPARMS will have the information

HTH

Sathyaram


Quote:
Originally posted by ARWinner
The Stored Procedure name is formed just like any other object in the database. It has a qualifier (schema) and its name. The Stored Procedures are in the system catalog and are maintained automatically by the database whenever they are created or dropped, so you do not need to know anything specific about how they are entered int the tables. To get authorized to call a Stored Procedure, you must be given the EXECUTE privilege. Look at the GRANT statement to see the proper way to to this. How it is called form the Application depends on the language the Application is written in.

HTH

Andy
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On