If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Need a dump of database tables and stored proc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-08-12, 04:10
xanhornph xanhornph is offline
Registered User
 
Join Date: Jul 2011
Posts: 6
Need a dump of database tables and stored proc

Hi Guru,

I've been trying to figure out how to export table structure with out data and stored procs on the database. I don't see any option in dbexport in informix that can do that. Is there anyway I can do this other than dbexport?

Database: Informix 9.4
Os: AIX 3.5
Reply With Quote
  #2 (permalink)  
Old 02-08-12, 04:43
begooden-it begooden-it is offline
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 183
Hi,

dbexport is not the right tool, dbschema is the right one:

dbschema -d databasename outfile.sql:
you'll get the schema of all the tables of the named database ( including indexes and constraints ), written the file named outfile.sql

dbschema -d databasename -t tabename outfile.sql:
you'll get the named table schema ( including indexes and constraints ), written the file named outfile.sql

No need to be a guru for this :-)

Eric
Reply With Quote
  #3 (permalink)  
Old 02-08-12, 21:52
xanhornph xanhornph is offline
Registered User
 
Join Date: Jul 2011
Posts: 6
Hi Eric,

Thanks for the reply this is a great help for me. Last question, does this cover the stored procedures? Thanks.
Reply With Quote
  #4 (permalink)  
Old 02-09-12, 07:12
begooden-it begooden-it is offline
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 183
Hi again,

supposedly, when using only -d databasename options, procedures and functions are listed. They are not listed if you use -d database name -t tablename.

Eric
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On