Data dictionary - any builin functions

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Data dictionary - any builin functions

Post by oz8hp » Wed 19 May 2010 07:52

Are there any built in functions i UniDAC for creating a data dictionary.
And if a data dictionary is available is there any functions for creating the db.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 20 May 2010 09:19

Hello

Please explain what does it mean: data dictionary. Also please specify the database that you are using.

oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Post by oz8hp » Thu 20 May 2010 09:59

It is an easy way to have a complete description of a database and a method for creating the complete database on a new server or location.
It can be done by creating SQL dumps but for a new customer it might not be easy to create the new db.
For the time being I use both MySQL and MS SQL as database

- when I use SQLite or MS Access I include an empty db in the .exe file so a new setup is quite easy. And I have methods for updating existing tables using UniScript

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 20 May 2010 11:58

To solve the problem you can connect to SQL server without specifying the Database property of TUniConnection. Then create a database using the 'CREATE DATABASE' statement, like this:
UniConnection.ExecSQL('CREATE DATABASE database_name', []);
After this you can use the TUniDump or TUniScript component to restore a database or its parts from a script.

Post Reply