Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Printing the table structure
Tue, Jul 12 2011 9:41 AMPermanent Link

Max Bernaert

It is possible to print the sql of a table but can we print the table structure in ElevateDB as in previous versions in the database system utility?

Thanks

Max Bernaert.
Tue, Jul 12 2011 10:08 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Max


Nope.

Roy Lambert
Wed, Jul 13 2011 1:57 AMPermanent Link

Adam Brett

Orixa Systems

But note Max that you can use SQL to extract information about the tables and tablecolumns of EDB from the information & configuration database and then use a third party report generator (i.e. FastReport etc.) to create a useful report of this structure.

i.e.

SELECT

 T.Name as TableName,
 TC.Name as ColumnName,
 TC.Type + ' ' + IF(TC.Collation IS NULL THEN '' ELSE TC.Collation)
 +IF("Length" is NULL THEN '' ELSE ' (Length: ' + CAST("Length" as CHAR(3))+')') as Details

FROM Information.Tables T
LEFT JOIN Information.TableColumns TC ON TC.TableName=T.Name

ORDER BY T.Name, TC.Name
Wed, Jul 13 2011 11:51 AMPermanent Link

Max Bernaert

Adam

Thank you. I put this in a unit and try to retrieve the information about the constraints.

Thanks.

Max.
Wed, Jul 13 2011 12:00 PMPermanent Link

Max Bernaert

Ok, all elements are in the documentation sorry.

Max.
Wed, Jul 13 2011 12:07 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Adam


This sort of thing is why I'd like to see Tim develop a plugin architecture for EDBManager - I'd be happy to start writing some utilities for it.

Roy Lambert
Image