hi all,
I am using a table variable to hold data while i play with records from other tables, unfortunately i have to use this table several times so i clear it out and use it again, the problem i have is that the id increments (as it should) each time i use the table.
I need to reuse the table variable but with the ID starting at 1 each time, theres not a great deal of help i can find through the web when it comes to table variables (more people trying to compare against temp tables) so i'm a little stumped!!!
If anyone knows how to clear down a table variable to use it a fresh please help!!!
Cheers
daveJam
*two wrongs don't make a right..... but three lefts do!!!!*
I am using a table variable to hold data while i play with records from other tables, unfortunately i have to use this table several times so i clear it out and use it again, the problem i have is that the id increments (as it should) each time i use the table.
I need to reuse the table variable but with the ID starting at 1 each time, theres not a great deal of help i can find through the web when it comes to table variables (more people trying to compare against temp tables) so i'm a little stumped!!!
If anyone knows how to clear down a table variable to use it a fresh please help!!!
Cheers
daveJam
*two wrongs don't make a right..... but three lefts do!!!!*