• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is there a way to get the parameters for a stored PRocedure?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you know, I work in aspx and we use Aplication block Data, and I asked to myself if there any way to obtain the parameters for a stored procedure in jdbc.

in .net it would be like this:

//we get an array of parameters
IDaraParameter[] params = OracleHelper.getParametersSet("Nombre Procedimiento",OracleCOnection).

well i hope you can help me
 
Ranch Hand
Posts: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Pablo Ganga:
if there any way to obtain the parameters for a stored procedure in jdbc.


Of course you can do this in JDBC
  • Obtain the connection from DataBase
  • Call the getMetaData() on connection, you will get DatabaseMetaData
  • Use the getProcedureColumns() method to get the parameter names of your procedure




  • Shailesh
     
    Pablo Ganga
    Greenhorn
    Posts: 13
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks a lot for the help i'll do just that
    reply
      Bookmark Topic Watch Topic
    • New Topic