If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Advantage ADSCONNECTION and GETSCHEMA

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-06, 18:28
josephsweeney josephsweeney is offline
Registered User
 
Join Date: Feb 2006
Posts: 1
Talking Advantage ADSCONNECTION and GETSCHEMA

Hi folks,

I'm needing to access legacy Advantage databases locally, using the Advantage .NET Provider components (which I must say, are rather good overall!) However, I am trying to find a way to open a table and get it's schema (field names, data types, etc.)

Under standard Microsoft olebdconnection I could use the following:
>>
Dim oRestrictions As Object()
oRestrictions = New Object() {Nothing, Nothing, Table.WorkingTable, Nothing}
goDataTableFields = dbOLEdbConnection.GetOleDbSchemaTable(OleDbSchemaG uid.Columns, oRestrictions)
Dim row As DataRow
For Each row In goDataTableFields.Rows
...
<<

However, the adsconnection component has not equivalent .getschematable function. I am certain there is a work around for this, but I cn't seem to locate it.

Anyone got ideas?

Cheers,
JS
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On