improved sqlserver 'doModifyLimitQuery' select-from pattern