reading stored procedure SQLs via JDBC

This is a discussion on reading stored procedure SQLs via JDBC within the JDBC JAVA forums in Framework and Interface Programming category; Hi Experts, Is there a way to read back Stored Procedure's SQL statements using JDBC from existing Database. I am thinking of migrating from one database to different database. Thanks HG...

Go Back   Application Development Forum > Framework and Interface Programming > JDBC JAVA

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-17-2008, 02:01 PM
hgohilgroups@gmail.com
Guest
 
Default reading stored procedure SQLs via JDBC

Hi Experts,

Is there a way to read back Stored Procedure's SQL statements using
JDBC from existing Database.
I am thinking of migrating from one database to different database.

Thanks
HG
Reply With Quote
  #2  
Old 09-17-2008, 04:25 PM
Jan M. Nelken
Guest
 
Default Re: reading stored procedure SQLs via JDBC

hgohilgroups@gmail.com wrote:
> Hi Experts,
>
> Is there a way to read back Stored Procedure's SQL statements using
> JDBC from existing Database.
> I am thinking of migrating from one database to different database.
>
> Thanks
> HG


Look in schema SYSCAT table ROUTINES.

If the LANGUAGE is SQL then column TEXT should contain text to recreate SP.

Reply With Quote
  #3  
Old 09-17-2008, 04:57 PM
Jan M. Nelken
Guest
 
Default Re: reading stored procedure SQLs via JDBC

hgohilgroups@gmail.com wrote:
> Hi Experts,
>
> Is there a way to read back Stored Procedure's SQL statements using
> JDBC from existing Database.
> I am thinking of migrating from one database to different database.
>
> Thanks
> HG


Sorry - I assumed you are using DB2; if not then ignore my answer; visit
system catalog of the database and find where text of SP may be stored.


Jan M. Nelken
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:53 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.