getting index of last row in

I have a table on a sql server and I am using with c#.  I need to retrieve the index of the last row in a table on the sql server.  How would I do this?
Who is Participating?
strickddConnect With a Mentor Commented:
Select Top 1 ID From Table OrderBy ID Desc
DImhoff1Author Commented:
Worked great, thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.