Changing Database Attributes
When creating a database using the CeCreateDatabaseEx you take certain decisions on how the database will be created. For example, you can specify up to four sort orders, and whether the database will be compressed or not. The CeSetDatabaseInfoEx function allows these attributes to be changed on existing databases. The function is passed a CEDBASEINFO structure that is used to specify the attributes that are to be changed. You should avoid changing databases from compressed to uncompressed, or changing the sort orders, as this can be time-consuming.
Listing 4.19 shows using CeSetDatabaseInfoEx to rename an existing database. First, the database is opened using CeOpenDatabaseEx to find the database's object identifier, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access