Hey Deme,
Yeah, so the parsing still stands. Unless you know the naming convention of the tables.
Let's say there are 6 tables all together. And the naming convention goes Table1, Table2, Table3 and so on...
You can simply count the number of tables and name the table based on that count.
But if the naming convention is not certain, then you have to parse the table name and get the number value out of it. This will essentially be a loop that checks each table name. Assign the numeric value to a variable each time the loop runs. Then have an if statement that reassigns the variable to the numeric value if the new one value (of the tablename being tested) is larger than the old value.
Use regular expressions (if you're using .NET) to do the parsing.
Hopefully I understood your problem a little better (lol probably not though!)