Page 1 of 1

Updating and selecting data from a Sybase table

Posted: Wed Nov 21, 2007 4:55 am
by rager
Hi,
There is a requirement where in the incoming data should be stored(insert/update) into a history table and after that two months old data should be selected from that table.

Is there any way to make the select stage run only after the update/insert?

Posted: Wed Nov 21, 2007 5:05 am
by ray.wurlod
Welcome aboard.

The simple answer is yes: run it in a separate job, the two jobs controlled by a job sequence.

Posted: Wed Nov 21, 2007 5:22 am
by rager
Hi,
Thanks for the quick reply, we are already using a job sequence and it has a set of predefined stages like extraction, transformation and delivery. It is the standard made by someone high up and they are unwilling to change it. Is there any way to put all this in one job?

I was thinking about using the transaction isolation for both the insert/update and select "read committed" and then use a remove duplicates on the key.

Do you think it is a good idea? There will be a performance impact, and i hope that database will not get locked.

Posted: Wed Nov 21, 2007 2:01 pm
by ray.wurlod
Nothing to prevent you from using lower-level job sequences where necessary. A job sequence is just another job type; it can be run from a Job activity.

On that basis I am not even going to address your other question.