This sample demonstrates opening, connecting to and closing a database for SQL access using the
mcosql_open(), andmcosql_close()functions. Note also that the memory allocator to be used by the SQL engine is registered by calling themcosql_initialize_memory_manager()function and the SQL runtime is initialized by calling functionmcoapi_initialize().
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bindirectory:api_sql_01_c_api_accessBut it is more instructive to run it in your development environment debugger, stepping through the code.