HighTechTalks DotNet Forums  

Retrieving data from an Oracle RDB database using system.data.odbc

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss Retrieving data from an Oracle RDB database using system.data.odbc in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Retrieving data from an Oracle RDB database using system.data.odbc - 04-27-2004 , 09:21 AM






I have a program that is attempting to retrieve data from an Oracle
RDB database using objects within the system.data.odbc namespace (like
connections and dataadapters).

I seem to be able to connect fine (i.e., my connection.open statement
doesn't fail), but when I go to issue a simple SELECT statement
(SELECT location_desc FROM location_code) I get the following error:

ERROR[HY000][Oracle][ODBC][RDB]%SQL-F-Syntax_Error

By the way when I issue the same SELECT statement from MS Access using
a query built on a linked table that touches the same Oracle RDB
database, the statement runs fine and returns records.

Any ideas???????

The portion of my code that deals with the issue that I'm experiencing
looks like this:

Imports System.Data.Odbc

Private cnSource As New OdbcConnection
Private objDataAdapter3 As OdbcDataAdapter
Private objDataSet3 as Dataset

cnSource.ConnectionString =
objDataSet1.Tables("System").Rows(inSystemCounter) .Item("Connection_String_Text")

cnSource.Open()

objDataAdapter3 = New OdbcDataAdapter(strSQL, cnSource)
objDataAdapter3.Fill(objDataSet3, "SourceTableData")

Reply With Quote
  #2  
Old   
moittest
 
Posts: n/a

Default Re: Retrieving data from an Oracle RDB database using system.data.odbc - 10-10-2004 , 06:54 AM







did any one find a way to solve it.
i got does errors too


-
moittes
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message609940.htm


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.