there are 5 databases used in my application my task is to analyze issues , every month end client send me the prod cut and i need to analyze the issues related to data.
now i want some time to compare the result of my fix on diffrent set of data like one is on nov monthe end data and other on dec month end data
You could update the data in a transaction and run the select in the same transaction then roll it back. Then you can look at the affect of your updates before commiting the changes.
It will lock the tables until the rollback but you would probably want to do that anyway.
========================================== Cursors are useful if you don't know sql. SSIS can be used in a similar way. Beer is not cold and it isn't fizzy.