odbcoledbdemo demonstrates database APIs and performs the following
-
Opens a access database by udl file.
-
Creates a table in the current dgn file and down loads the database(one table in this example) into the table.
-
Update the table due to any changes in the database i.e adding/removing rows/columns or entry changes.
In order to build odbcoledbdemo, Visual Studio 2013 is required and the MicroStation developer batch file must also have been set. It is recommended to first run the Visual Studio 2013 command prompt "VS2013 x64 Cross Tools command prompt" and then run the MicroStation SDK command MicroStationDeveloperShell.bat.
This example provides the following key-ins.
-
ODBCOLEDBDEMO CONNECT ODBC Connect to a database by ODBC
-
ODBCOLEDBDEMO CONNECT OLEDB BROWSE Connect to a database by OLEDB with browsing a udl file
-
ODBCOLEDBDEMO CONNECT OLEDB NEW udl file name Connect to a database by OLEDB with creating a udl file
-
ODBCOLEDBDEMO CREATE Create a text table with data which are loaded from the database
-
ODBCOLEDBDEMO UPDATE Update the text table with data which are updated from the database
-
ODBCOLEDBDEMO DISCONNECT Disconnect the database