Am Samstag, den 17.09.2005, 14:17 +0200 schrieb Wolfgang Schaible: > hallo,
Hi Wolfgang, did you select the wrong list address or the wrong language? ;) > Wollte statt mit Bildschirmfoto und Bleistift den Aufbau einer > HSQLDB-Anwendung 'artgerecht' dokumentieren und fand in einem Macro > ein passendes Fragment zum Anpassen. Ich hoffte, über Tabelle, > Spalte zu den Definitionen (Datentyp, Länge, ...) zu kommen und > alles über eine Calc-Tabelle zu Papier bringen: I'd use another approach: making the design using a tool better fitting the task could be helpfull. Dia would be a oss candidate for this one ... > sub showDBstruct 'HSQLDB: unusable: shows also deleted DBs und Cols > Dim oTables as Object, oMetaDta as Object, oCols as Object > Dim mTablesNames, mColNames, s1, s2, s3, i, j > oTables =oDtaSrc.Tables() > 'xRay.Xray oDtaSrc 'oTables > mTablesNames=oTables.getElementNames() > for i=LBound(mTablesNames) to UBound(mTablesNames) > s1=s1+">"+mTablesNames(i)+"<"+chr(13) > ' oMetaDta=oDtaSrc.getMetaData() 'undef ->unimplemented? > oCols=oDtaSrc.Tables(i).columns > mColNames=oCols.getElementNames() > for j=LBound(mColNames) to UBound(mColNames) > s3=s3+mColNames(j)+chr(13) > next j > next i > msgbox (s1, 66, "TableNames") > msgbox (s3, 66, "ColumnNames") > end Sub 'showDBstruct > > Doch zusätzlich zu den aktuellen Tabellen- und Spaltennamen liefert > das Ding auch _alle je gebrauchten Namen dazu_ : --->Unbrauchbar! > Namen, die beim Kopieren-, Ändern-, Umbenennen-Zyklus bei der > Entwicklung benutzt wurden, da OOo keine besseren > Entwicklungs-Werkzeuge hat) This works fine using DBase or MySQL databases for me (tried creating and deleting a table in mysql, it is *not* listed after deletion), so I would blame the HSQLDB implementation somewhere in the OO.o driver, the jdbc driver or the database itself. > -Wie macht man's besser? > .script und .properties im entzippten x.odb file sind schon > brauchbarer, aber auch kein Dokumentationswunder... See above, design your database in a tool made for this task, export DDL or drive the db server directly and use it from OO.o and other clients. > -Boshafte Nebenfragen: Was hat die DB wohl sonst noch an längst > Vergangenem gespeichert? Wie wird man's wieder los? Maybe you have to run a pruging finction or the like as in DBase to get rid of deleted stuff completely? HTH, Marc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
