SQL 2000
Hi All,
I import data(29 columns) into a SQL table from a txt file. On import I add an identity column(uniqueID).
The data has a end "marker" which is the last row and I need to delete the whole row as it's not actual data.
This is the way I have been doing it:
..but am not sure if there is a better method to identify the last row instead of using the identity column in order to delete this row?
Any info appreciated as always.
Michael
Hi All,
I import data(29 columns) into a SQL table from a txt file. On import I add an identity column(uniqueID).
The data has a end "marker" which is the last row and I need to delete the whole row as it's not actual data.
This is the way I have been doing it:
Code:
delete from table where uniqueID = (select max(uniqueID)
from table)
..but am not sure if there is a better method to identify the last row instead of using the identity column in order to delete this row?
Any info appreciated as always.
Michael