I would also recooend to craft the SQL query itself in such a way as to just return the most recent entry, e.g. based on a primary key or ID.
For example:
Code:

select * from table where ID=(select max(ID) from table)


or
Code:

select top 1 * from table order by ID desc

_________________________
There are two types of vessels, submarines and targets.