removing invalid mssql with syntax