aspose file tools*
The moose likes JDBC and the fly likes Converting a Store Proc to a Java Function(Class) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Converting a Store Proc to a Java Function(Class)" Watch "Converting a Store Proc to a Java Function(Class)" New topic
Author

Converting a Store Proc to a Java Function(Class)

San Nan
Greenhorn

Joined: Jul 01, 2005
Posts: 22
Dear All,

I am having a store proc in backend (SQL Server) & instead of calling the store proc from java program ( through Callable) i want to make a function in java, which can be called without callable....

Please help me to provide solution by providing source code


Thanks


Nan
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
It seems that you are handling some complicated calculations in Stored Procedures and now intending to achieve it from within Java itself.

Even in the second case, you MUST make at least a SELECT operation in order to get the data over which you will iterate, read, ignore, add , multiply etc. and do your tasks.
 
wood burning stoves
 
subject: Converting a Store Proc to a Java Function(Class)