BFjamsec
1/12/2018 - 9:07 AM

Get last row

SELECT
	MAX(IDENTITYCOL) AS MaximumIdentity
FROM
	[konnex].[dbo].[AppContacts]
SELECT Auto_increment FROM information_schema.tables WHERE table_name='the_table_you_want'
SELECT row 
FROM table 
WHERE id=(
    SELECT max(id) FROM table
    )