I try to run this:
SqlDataAdapter da = new SqlDataAdapter("Select top 100 * from table_name order by id desc", conn)
and I am getting all the rows back instead of the last 100.
You have TOP 100 in your SELECT statement thats why it only returns 100 rows. remove TOP 100 fromy your select and it will return all the rows.
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM table_name ORDER BY id DESC", conn)
" I am all the rows back, not the last 100." :S so I am guessing he/she wants all the rows back not only the TOP 100 rows.
TOP 100from your select statement.