• almost forgot, if already using osql, why involve DTS in the picture? wouldn' it be just as easy to run your query using OSQL and use the output of that query as the input for the next?