MSSQL: avoid warnings if result is invalid