See if windwalker exposes bbox token functionailty explaind here https://github.com/mapnik/mapnik/wiki/PostGIS. Also suggest it as a feature to mssql-mapnik if its not one.