G
Guest
Hello
I need to write a stored procedure that executes a bunch of bulked and
related(stock) trades. For example, the customer may have requested four
trades to be placed. The trades are related because the money from selling
one stock say needs to fund a new stock purchase.
What is the recommened approach for sending the set of information to my
stored procedure please? I can'r rely on stored proc parameters because the
number of bulk trades varies and can be quite large.
We have thought of two possible approaches:
1. Send a delimited string with special characters in the string signalling
the begining of a new trade instruction. Clearly the stored proc is going to
be complicated because of the string handling it is going to have to do
2. Insert the trade instructions into a temporary table and have the trade
execution stored read the data from it during from its execution
The target database is Sybase.
Thanks
Amir Tohidi
I need to write a stored procedure that executes a bunch of bulked and
related(stock) trades. For example, the customer may have requested four
trades to be placed. The trades are related because the money from selling
one stock say needs to fund a new stock purchase.
What is the recommened approach for sending the set of information to my
stored procedure please? I can'r rely on stored proc parameters because the
number of bulk trades varies and can be quite large.
We have thought of two possible approaches:
1. Send a delimited string with special characters in the string signalling
the begining of a new trade instruction. Clearly the stored proc is going to
be complicated because of the string handling it is going to have to do
2. Insert the trade instructions into a temporary table and have the trade
execution stored read the data from it during from its execution
The target database is Sybase.
Thanks
Amir Tohidi