dim paramID = me.txtLastIdentity.text
me.tableadapter1.fillbyID(me.dataset1.table, paramID)
SELECT TOP 1 * FROM MyTable ORDER BY IDFIELD desc
I was wondering if there was a way in a SELECT statement (or any other way for that matter) to select the very last (or newest) entry in a SQL database from vb.net 2005. Thanks!
VB.NET:SELECT TOP 1 * FROM MyTable ORDER BY IDFIELD desc
if you know that your SQL table['s natural ordering] is in order-of-insertion