Re: Field width
- From: "Bob Berry" <callbob@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Apr 2008 16:18:08 -0600
Sorry, I guess I could have mentioned that I am working with an Access DB.
I think I now know enough to search and find what I need to know to
implement your answer. Thanks very much.
Bob Berry
"Brian Bushay TeamB" <BBushay@xxxxxxxxx> wrote in message
news:83780494lp6jtdb5i6h1uradv05drm18p4@xxxxxxxxxx
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
.
- References:
- Field width
- From: Bob Berry
- Re: Field width
- From: Brian Bushay TeamB
- Field width
- Prev by Date: Re: Problems with a tringer
- Next by Date: Re: Problems with a tringer
- Previous by thread: Re: Field width
- Index(es):
Relevant Pages
|