solidDB Help : Samples : Shared Memory Access C/ODBC sample
  
Shared Memory Access C/ODBC sample
This sample C application demonstrates how to use a solidDB Shared Memory Access (SMA) server with the solidDB ODBC API. For more information about SMA, see Shared Memory Access (SMA).
The files for the sample are located in the soliddb-installdir\samples\sma directory.
For general information about running the samples, see Samples.
The sample application (sma.c) is a solidDB SMA application that shows how to use an SMA server with the solidDB ODBC API. The sample is written in C and uses ODBC API calls to complete the following actions:
1 Connect to the SMA server by using ODBC API SQLConnect with the user name and password of 'dba', and the data source 'smaconnect', which is defined in the solid.ini file.
2 Create a table called TestTable and adds some records to the table.
3 Select records from TestTable.
4 Disconnect from the server.
Running the sample
Run the runme script (runme.bat in Windows), which compiles and runs the application.
If you have any problems starting the server, see Troubleshooting SMA.
Go up to
Samples