MSSQL task variables query issue