• 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

Dynamic paramaters

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a scenerio.

I have a stored procedure.Today I am calling the sp with 3 paramaters and is called form around 30 java programs.

Later I would like to add an other paramater to the sp signature just for the 31th java pgm.

I don't want to touch all other 30 java pgms,just because I have added one more extract paramater to sp ,to customize to the 31 th java pgm.


I feel that XML(Paramaters) and Java can help me.Can any one through light on the same.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Raj,
You can create a new stored procedure with 4 parameters. Have the original stored proc call this one (with the execute statement) and move the implementation to the new stored proc.

Now the 30 programs can call the 3 parameter one and the new one can call the 4 parameter one.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the JDBC forum...
 
reply
    Bookmark Topic Watch Topic
  • New Topic