Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stored procedure in db2

Status
Not open for further replies.

aroy

Programmer
Feb 17, 2001
1
IN
how to write a stored procedure in db2
 
How to write stored procedure in DB2?? I used SQL syntax to write the SP however it seems that DB2 doesn't recognize 'procedure' in my 'create procedure <procedure_name>' syntax? Anybody can help?
 
Stored Procedures are written Java or C++ with the SQL embedded in the Java. Build an SQL String and use Prepared Statement Object to pass it to Db2 through default Connection. Default connection is what you use to connect to DB2 from a remote program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top