o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Slow ADO/ODBC to Oracle -

Hi, I have VB6 code here to access Oracle 8i with ADO/ODBC. I found the performance is very bad. If I run the same query from SQLPlus, it only takes a few seconds. But with the program it take a few minutes. The bottle neck is the statement of checking rstSource.EOF. I am using Microsoft ODBC for Oracle driver. Any help is appreciated. Thank you in advance.


Private Const CONNECTION_STRING = "DSN=MyDBDev;UID=reader;PWD=readonly"

Private Sub ImportData(strSQL As String)
Dim cnnConn As ADODB.Connection
Dim rstSource As ADODB.Recordset
Dim cmdCommand As ADODB.Command

lblStatus.Caption = "Connecting to DB ..."

' Open the connection.
Set cnnConn = New ADODB.Connection
With cnnConn
.ConnectionString = CONNECTION_STRING
.Open
End With

' Set the command text.
Set cmdCommand = New ADODB.Command
Set cmdCommand.ActiveConnection = cnnConn
With cmdCommand
.CommandText = strSQL
.CommandType = adCmdText
.Execute
End With

lblStatus.Caption = "Retrieving data ..."

Set rstSource = New ADODB.Recordset
rstSource.Open cmdCommand

If Not rstSource.EOF Then '<-- This statement takes very long time to execute!!
ProcessData rstSource
End If

End Sub

 

ODBC with Oracle -
I could not get odbc connection with oracle. How can i get the connection using ODBC. When i created Datasource it is not showing Oracle Odbc Driver. It is giving sql server only. How to set ODBC with Oracle in Visual Basic 6. When i tried with coding it is not displaying oracle.


Oracle 9i -
Out of VB6 I try to connect an Oracle9i database. I was successful but veerrry slow with ODBC. So, I think it would be better to use an OLE DB Provider for Oracle (from Oracle or from Microsoft?). What I don't know is where can I get it from and how is the code in VB (connectionString)


Using VB to connect to Oracle dB using ODBC -
Quick question. I have the following setup to connect to an Oracle dB using VB... - VB 6.0 - ADO connection - ODBC - Using Microsoft ODBC for Oracle driver I have the Oracle client installed on my machine and am having no problems whatsoever running my application. In ord


Wich Client-Version -
Hello i've a problem with Oracle-ODBC: We use in our company 2 Versions of Oracle-ODBC-Drivers (7 or 8). When linked to a Access-DB i have to refresh the link in order to get the right connection string. My question: How can i proof wich Oracle-ODBC-Driver is installed? Thank


Connectivity with the Oracle Server. -
How to upgrade or replace the ORACLE ODBC Driver in ODBC layer. Since I am getting problem with {Microsoft ODBC for Oracle} driver?


Which ODBC driver to use in order to connect to OracleDB -
I have 1 question concerning Data Sources (ODBC). Which driver should I use to connect to ORACLE Database? 1) Microsoft ODBC for Oracle (from microsoft) 2) Oracle ODBC Driver (from Oracle) 3) SQL Server (from Microsoft) it seems to me, I have tryed them all, but I have still ero


DAO connection with ODBC Oracle driver problem -
I am trying to connect to an Oracle 8.1.7 server using VB6.0 application. I do not want to install the Oracle Net8 client in order to keep the user's pc thin. I have been using DAO with ODBC Oracle driver. I have not been able to successfully open a connection. I am not sure how


How To Connect Oracle Using Odbc -
Hai all. I request your valuable help. I have VB 6.0 and Oracle 8 personnel edition in my system. I would like access oracle database using ODBC. I tried by creating a user DSN through Windows Cotrol Panel. Then while accessing through VB it asks SQL Server login. SQL server is n


Oracle Odbc -
When i tried to connect oracle data base it encouter some problem If i tried to add oracle odbc to user dsn it shows an error code 1157 How can i solve it


Which is the best approach to use ODBC -
Hi, I'm a bit confused regarding different ways to access databases in VB6 using ODBC. There are DAO, RDO, ADO, JET... My task is to write an general purpose application which has to access database of the user choice, but it seems to be Oracle, SQL Server and Access. I have several


Oracle RDB Conneting via ODBC -
Hi I have a problem I am trying to connect to an Oracl RDB server on an Alpha Machime using ODBC ,I downloaded the ODBC driver for RDB but ....it did not work Any Suggestions Another thing ...When I was trying to download the RDB Kit for VMS from the Oracle WebSite ..It


ODBC Updates to Oracle (VB) -
Is there sample code within VB that can allow me to update tables using an Oracle ODBC driver? Is there anything special in the regedit to allow me to do updates into Oracle using the ODBC driver?


ADO screwing up sql with Oracle odbc driver -
I am using ado 2.1 with the odbc driver for Oracle. When I execute my query through the Oracle odbc test utility I get the records I expect. But through the app with the added layer of ado I do not get the same results. The sql statement is an outer join between two tables: Select *


Need a guru: Oracle RDB via ODBC problem -
Hello, I am having trouble connecting to an oracle RDB server via ODBC. I have the connection string correct, but when I run a select statement, the program errors. Here is the exception info: System.Data.Odbc.OdbcException: ERROR [HY000] [Oracle][ODBC][Rdb]%RDB-F-BAD_DB_HANDLE


ODBC Connection Strings VIA ASP ---Resolved****** -
Hello, I am trying to connect (through ODBC) to an Oracle 8i database and i am having no joy whatsoever. I have tried the following: 1......strConn="Driver={Microsoft ODBC for Oracle}; ConnectString =students.world;Uid=(Username);Pwd=(Password)" 2......strConn = &quo


Oracle ODBC driver -
Hi All, I want to connect to my oracle database from vb,but i don't have oracle driver installed on my system.Where can i download the ODBC driver for oracle for windows 98.


Direct connect Oracle without ODBC -
Hi: Is it possible to connect Oracle without ODBC or Sql Net using ADO? I need to develop a vb application witch run on desktop, and no need to configure DSN or sql net. My oracle 8i is install in a linux server, and client side running win98. Thanks fro any help! Lam


Automating ODBC Oracle Connection -
I was wondering what I need to do to automatically setup an ODBC DSN for an oracle database. I am not sure if I need to create a TSN file, or if I can just create the ODBC DSN. I would prefer to do this using ADO, but if DAO is the only way that is how I will do it. Thanks in


Must i install Oracle Client to connect a Oracle DB -
Hi Im trying to create a data source to connect a oracle DB with Microsoft ODBC Driver on Control Panel and im receiving a message explain that i must to install a oracle client on my machine to can do it. It´s true? I only want to connect on server and read data from oracle db


ODBC not connecting!!! -
Hi, Since having to re-install Oracle I get the following error when trying to link tables in Access: - ODBC --call failed [Microsoft][ODBC drviver for Oracle][Oracle] (#0) [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed IM006 0 [Microsoft][ODBC Driver Manag


Migrate flat files to Oracle.. will oracle be slow -
i am about to start developing a small program to read records from flat files and insert them to an oracle 8i database. the flat file contains more than one million records (1,159,326 records exactly), this file was exported from a database running under Unix... plus many other files


Update Error From Access To Oracle -
Whilst attempting to update an Oracle 8i table consisting of Varchar2 datatypes from Access 2000 memo fields, I get the following error: [Oracle][ODBC] no data at execution values pending (#0) When I then go to run the query again I get the following error message. [


Numbers all Zero thru Oracle ODBC -
We have developed an application that works correctly using Microsofts ODBC to Oracle but the client will only allow use of Oracles. All the number fields are returned as Zeros. Can anyone help?


Maximum no of record fetched. -
Hi All, I have a Electronic Messaging System(EMS) developed in VB6. It fetches records from one table from ORACLE db system. For connection we are using ODBC driver for ORACLE. Now the problem is EMS is crashes when no of records in one fetch is larger than 10. I does not en


Need Help connecting to oracle... -
Hello, Can somebody tell the steps to connect to oracle..Actually i tried to do this way..Start-settings- control pannel-ODBC-user DSN-add--after this i am not sure what i should do..some where i read that i should select "Microsoft ODBC driver for oracle" but i don't h


recordset from oracle stored procedure using OLEDB -
Does anyone know how to retrieve a recordset from an oracle stored procedure using OLEDB? I have an example that works when using ADO and the {Microsoft ODBC for Oracle} driver. However, when I use the OLEDB it does not work. Also is it possible for the oracle out param to be a curso


Advantage of Microsoft ODBC Driver over Oracle ODBC Driver -
can nay one tell me the Advantage of Microsoft ODBC Driver over Oracle ODBC Driver to connect backend Oracle database


Is it me or is the Oracle DataReader in .NET really slow... -
Is it me or is the oracle reader really slow when compared to ADO or even RDO??


Oracle Excel VB -
Question Can you connect to an oracle database via ODBC oracle drivers without installing Oracle Client software, via excel or vb Thanks in advance


Calling PL/SQL procedures (Oracle database) from ASP -
Hello! I'm connecting to Oracle 7.3.4 database from my ASP using ODBC (Microsoft ODBC for Oracle). There are also several calls to pl/sql proderures from ASP. My problem is, that after every succesfull pl/sql procedure call changes are commited into database, even if I don't have CO


Connecting to Access/Oracle from .NET Problem -
I have an Access database that has a linked table to Oracle in it. I need to query one of the Access tables joined to the Oracle linked table. When I try to connect to the Access table I get this error... Record(s) cannot be read; no read permissions on tblFormations When I try t


Changing Oracle Pwd from VB -
Hi, I have a oracle user SCOTT with password TIGER. The password has expired yesterday. Can i know of any way to write a VB program to connect to ORACLE database and assign a new password to the user SCOTT. I know we can connect thru ADO using OLEDDB and ODBC, but we need to


Urgent Please(Changing Oracle PWD from VB) -
Hi, I have a oracle user SCOTT with password TIGER. The password has expired yesterday. Can i know of any way to write a VB program to connect to ORACLE database and assign a new password to the user SCOTT. I know we can connect thru ADO using OLEDDB and ODBC, but we need


Where do you put the COnnection string in VB6 to oracle -
Hello Everyone, I am trying to create a simple VB program that connects to a Oracle database on another server located in our building, we are using ODBC.. I looked online and found this, but where do i put it? in the code? I have no idea oConn.Open "Driver={Oracle ODBC Driv


DB Connections to an Oracle DB, What is the best connection -
I am writing code against an oracle 7.3.3 database using ADO. I have noticed very slow connnections and updates. Is RDO or DAO any faster when dealing with oracle? Thanks


oracle vb error -
hi folks, i'm having this problem with a vb app that i wrote. everything was working fine but then last week i started having this problem and i don't know what started it... i get the following error when the app tries to connect to the oracle database: first a window pops up and t


Performance Probs with Oracle ODBC Drivers -
Hi guys and gals, I am having a little problem with Oracle drivers, at least that is where the signs are pointing. What I have is a VB application making use of ADO (was an old version but since upgraded to the newest release of ADO without change). to connect to a remote Oracle da


Begginer Doubt in ADO with ODBC... -
Hi Guys, I'm new to Database Programming in VB. Can anyone tell me how do I connect VB with Oracle with ADO Connectivity Method. using ODBC Driver (from Control Panel... I should create the Driver and then Only able to run the Program). If use Ordinary DAO or Ordinary OD


connecting to Oracle Database -
When connecting to an Oracle Database from VB, do I need to install SQLNet on the client machine, or can I just use ODBC? If I can just use ODBC, then I'm doing something wrong and could use some assistance. Thanks, Eric


missing select keyword in CR -
I'm working with the Crystal Reports that ships with VB5 (Crystal Reports 4.6) and Oracle 8. I have a system DSN set up using the Oracle ODBC Driver v.8.00.05. When I go into Crystal Reports, complete the new report wizard and then try to preview the report that I just created, I get