insert into @outputtable
SELECT DISTINCT BatchID FROM MyTable
>I need to insert values into a temporary table from an SQL call, but for some reason I just can't think of how to do it.
>
>If I declare a temp table called @OutputTable and put one integer field called IntKey in it, how do I fill it with the values from this query: SELECT DISTINCT BatchID FROM MyTable
>
>Thanks!
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown