FC-2588 var scoping in MSSQL2005 DB gateway