Re: Field width




How can I determine the width of a text field in a DB? Is there DDL that
will give me this info?

That information will depend some what on the database you are using.

The TAdoConnection.OpenSchema method is one way of getting at this information.

In SQL server the following code will populate AdoDataset1 with the field
information from the categories Table

ADOConnection1.OpenSchema(siColumns
,VarArrayOf([Null,Null,'Categories',null]),EmptyParam,ADODataSet1)

will give you
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.


Quantcast