🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4965

IB6 ODBC Driver

#4965
From: Lew
Date: Thu, 06 Sep 2001 20:36
50 lines
2063 bytes
Hi,
I recently downloaded and installed IB6 Open Source.
After installation I checked and tested and all works well.

The problem I have however, is getting data out of a table.

I have made 2 DSN connections with 2 different drivers,
having no success with eirther.

Using VisualBasic 6, and connecting with a DSN created
using the vivgenic driver provided with the download, I
just get the message unexpected error.

Using a connection created from XTG Systems driver
 I get a connection OK, and what appears to be a
recordset extraction, however no data is returned from
the table.

Other local servers installed such as MySQL and SQL7
work well, no problems.

What am I not doing correctly? - any ideas welcomed.

************
'Table named TEST with one int Field.

Dim objConn As New ADODB.Connection
Dim objRS As New ADODB.Recordset
Dim objErr As ADODB.Error

objConn.Open "DSN=IB6GO; UID=SYSDBA; PWD=masterkey"

objRS.Open "SELECT * FROM TEST", objConn, adOpenDynamic, adLockOptimistic

Set DBREC = objRS

While Not DBREC.EOF

    With DBREC
         Text1.Text = DBREC(0)
     DBREC.MoveNext
   End With
Wend

objRS.Close
objConn.Close

***********************

Lew.
Technical Details
Message-ID: <3b97dfe8$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,173302a9119a0f6e,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-09-06 13:50:18 PST
From: "Lew" <lew@businet.co.nz>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: IB6 ODBC Driver
Date: Fri, 7 Sep 2001 08:36:39 +1200
Lines: 54
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 202.27.177.78
Message-ID: <3b97dfe8$1_2@dnews>
X-Trace: dnews 999809000 202.27.177.78 (6 Sep 2001 13:43:20 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews