Fixing issue with sample/head queries in mssql.

mssql uses 'select top N...' whereas others use 'select ... limit N'.
This fixes it. Also changed to use `format` vs. '%'.
Merge pull request #44 from slackorama/feature/fix-select-top-n

Fixing issue with sample/head queries in mssql.