Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...A lot of the information I've found at this site would've taken me forever if I'd have attempted to research it on my own. Thanks again."

Geography

Where in the world do Tek-Tips members come from?
mm8294 (MIS)
28 Mar 02 16:34
We have an Informix database and the boss want me to get the script to create 90 existing tables. He does not really want to recreate those existing tables, but he want the DDL script. Does anybody know how to do it in Informix? Don't tell me I have no alternative but doing it manually.

Thanks a lot.
mm8294 (MIS)
28 Mar 02 16:43
By the way, the boss want the commands to grant the privileges on those tables (such as 'GRANT  select  ON table_name to User_name) be included in the file. I don't know if this is possible.

Thanks.
Guest (Visitor)
28 Mar 02 19:07
MM8294:

Informix has the dbschema utility that creates the schema for a single table or the whole database:

dbschema -t all -d <dbname> -p all <outputfilename>

This does the whole database, but if all your table names are in tmpfile:

while read file
do
   dbschema -t $file -d <dbname -p all "$file".sql
done  < tmpfile

Regards,


Ed
Schaefer

mm8294 (MIS)
29 Mar 02 11:06
Thanks a lot. This is what I need.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close