Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic paramaters

 
Raj Joe
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the JDBC forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic