Improve limit support for sql server