Informix/IDS: dbschema utility

You can use dbschema utility to get the schema of a database and redirect the dbschema output to a file.

To get the complete syntax of dbschema just type “dbschema” from command prompt and press enter.

Example: dbschema –d new_testdb new_testdb.sql

The above dbschema command will generate the schema into new_testdb.sql file.

Example: To get a specific table schema
dbschema -t table99 -s all -p all -r all -f all -d db_name -ss table99.sql

To get schema for whole database:
dbschema -t all -s all -p all -r all -f all -d db_name -ss db_name.sql
Cheers!
RK

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: