From: serkane <serkane@pcis.com.tr>
To: pgsql-odbc@postgresql.org
Subject: Re: I cant get the description or default value of a field
Date: 13 Jun 2006 01:33:20 -0700
Message-ID: <1150187600.655013.149270@u72g2000cwu.googlegroups.com> (raw)
In-Reply-To: <1150187043.696951.8370@f6g2000cwb.googlegroups.com>
References: <52CA6BC0D0E9EE4E93208DB39A3218FE02E12CBF@EXCHANGE.gp.cv.commvault.com>
<20060613072438.GC26631@soptik.pzkagis.cz>
<1150187043.696951.8370@f6g2000cwb.googlegroups.com>
Set Rs = Cn.OpenSchema(adSchemaColumns, Array(Empty, Empty, TableName,
Empty))
Do While Not Rs.EOF
Debug.Print Rs("ORDINAL_POSITION")
Debug.Print Rs("COLUMN_NAME")
Debug.Print Rs("DATA_TYPE")
Debug.Print Rs("COLUMN_DEFAULT")
Debug.Print Rs("IS_NULLABLE")
If IsNull(Rs("CHARACTER_MAXIMUM_LENGTH")) = False Then
Debug.Print Rs("CHARACTER_MAXIMUM_LENGTH")
Debug.Print "0" '** Num_scale=0
Else
Debug.Print Rs("NUMERIC_PRECISION")
Debug.Print Rs("NUMERIC_SCALE")
End If
Debug.Print Rs("DESCRIPTION")
Debug.Print Rs("DISPLAY_SIZE")
Debug.Print Rs("COLUMN_HASDEFAULT"), Rs("COLUMN_DEFAULT")
Rs.MoveNext
Loop
Call RsClose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: serkane@pcis.com.tr
Subject: Re: I cant get the description or default value of a field
In-Reply-To: <1150187600.655013.149270@u72g2000cwu.googlegroups.com>
References: <52CA6BC0D0E9EE4E93208DB39A3218FE02E12CBF@EXCHANGE.gp.cv.commvault.com> <20060613072438.GC26631@soptik.pzkagis.cz> <1150187043.696951.8370@f6g2000cwb.googlegroups.com> <1150187600.655013.149270@u72g2000cwu.googlegroups.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox