adaptate modify limit query for sql server 2000