X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D99769F9CAA for ; Tue, 13 Jun 2006 05:33:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 48056-06 for ; Tue, 13 Jun 2006 05:33:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 4D0D99F9316 for ; Tue, 13 Jun 2006 05:33:27 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 3068E3093C; Tue, 13 Jun 2006 10:33:26 +0200 (MET DST) From: "serkane" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: I cant get the description or default value of a field Date: 13 Jun 2006 01:33:20 -0700 Organization: http://groups.google.com Lines: 22 Message-ID: <1150187600.655013.149270@u72g2000cwu.googlegroups.com> References: <52CA6BC0D0E9EE4E93208DB39A3218FE02E12CBF@EXCHANGE.gp.cv.commvault.com> <20060613072438.GC26631@soptik.pzkagis.cz> <1150187043.696951.8370@f6g2000cwb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com In-Reply-To: <1150187043.696951.8370@f6g2000cwb.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: u72g2000cwu.googlegroups.com; posting-host=85.99.231.165; posting-account=4L4m5Q0AAABiskqEqF9v_McWnhKo8kjg To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/132 X-Sequence-Number: 7880 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