Remove call to MDSYS. in SQL code. Thanks to Dominique Legendre for the report.