I have stored procedure that queries a linked server and performs inserts into local table. i would like to store the max(RID) from the data that i have inserted so that i c