Note

The ST_BdMPolyFromWKB function is not present by default in newly created databases.
Use the sa_install_feature system procedure to install the spatial SQL compatibility functions. See sa_install_feature system procedure.