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 > Oracle > OpenSchema with MSDASQL to retrieve from Oracle table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-03, 03:26
Lalitha Lalitha is offline
Registered User
 
Join Date: Jan 2003
Posts: 1
OpenSchema with MSDASQL to retrieve from Oracle table

Hi,

I am trying to get the columns from a table in Oracle databse using OpenSchema and MSDASQL provider. The resultant recordset contains the 2 records for each column.That is, if the table has 4 columns, the recordset contains 8 records. However, when I use MSDAORA or ORAOLEDB, the recordset is fine. The code snippet that I used is :


Dim lConnection
Dim lRS
Dim lFieldName

lConnection.Open ("Provider=MSDASQL;Driver={Microsoft ODBC for
Oracle};Server=TESTDB;UID=USER;PWD=TEST;")

Set lRS = lConnection.OpenSchema(adSchemaColumns, Array
(Empty, Empty, "Test"))

While Not lRS.EOF

lFieldName = lRS("COLUMN_NAME")
MsgBox lFieldName

Wend


Any one tried this?

Have a nice day,
Lalitha
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