# Access

> This sample demonstrates opening, connecting to and closing a database for SQL access using the `mcosql_open()`, and `mcosql_close()` functions. Note also that the memory allocator to be used by the SQL engine is registered by calling the `mcosql_initialize_memory_manager()` function and the SQL runtime is initialized by calling function `mcoapi_initialize()`.

### How to Run

> 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\bin` directory:

>         api_sql_01_c_api_access

> But it is more instructive to run it in your development environment debugger, stepping through the code.

> Related Topics