473,569 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to gather data to Access local table from odbc connected database

4 New Member
I am trying to append data to my local access database from an oracle connected database. I tried using the default query function but it take a very long time and it sort of hangs there and no results returned. i would like to know whether anyone know any codes to do this task. Appreciate all the help i can get. Thanks.
Jan 16 '07 #1
5 2958
NeoPa
32,564 Recognized Expert Moderator MVP
Try opening the Oracle table by itself first. Is it very slow?
If not, then post the SQL of the query you have and we can see if it has anything obviously inefficient in it.
Jan 16 '07 #2
nico5038
3,080 Recognized Expert Specialist
Best to use a so-called Pass Through query. You'll have to write a query in Oracle SQL and set the querytype to PassThrough. Then just the SQL will be sent to the Oracle database engine and just the results will be returned.
All needed is an ODBC connection.
Use this query as basis for an Access append query to add the data to an internal table.

Might help to check the helpfile on the Pass Through query.

Nic;o)
Jan 17 '07 #3
jonathanlim
4 New Member
Thought that the pass through query only does a select action and not append action. How do i do an append action with pass through query. Any sample code? Thanks for the reply.
Jan 17 '07 #4
nico5038
3,080 Recognized Expert Specialist
The solution to the "select" was in my comment:

Use this query as basis for an Access append query to add the data to an internal table.

So after creating qryPassThrough create an INSERT INTO not based on a table, but on the query....


Nic;o)
Jan 17 '07 #5
NeoPa
32,564 Recognized Expert Moderator MVP
Thought that the pass through query only does a select action and not append action. How do i do an append action with pass through query. Any sample code? Thanks for the reply.
Firstly, Nico's answer is correct and that is a good way to do it.
In response to your statement, though, PassThrough queries can be used for action queries.
An append query in this case, would need to be written to SELECT from a data source (table) available to the Oracle back-end database itself. It could not just refer to one of your Access tables.
Jan 17 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3246
by: Phil Powell | last post by:
I've read some online resources that utilize various MySQL command-line actions to migrate data from Access to MySQL. The situation is this: a group of co-workers of mine will be using an Access db in a shared source (for now, a directory.. ???) to be able to generate reports on the fly. What they want to do is to be able to migrate that...
12
3198
by: Jerry Weinstein | last post by:
Hi, I know about stored procedures and that they can speed up data entry via the SQL 'insert ' statement. However, one drawback to this method is that using the stored procedure still requires one to manually and individually enter each and every record to be inserted to the database before the procedure is executed. I want to circumvent...
1
14905
by: Yanik Reid | last post by:
When I run the following vb.net code, I'm not able to acces the my database AMFLIB. I use to be able to access AMFLIB with the old ODBC driver from IBM iSeries Access but now I want to use the new managed IBM.Data.DB2.iSeries data provider from iSeries Access V5R3. When I remove Database=AMFLIB from the connection string, I can connect...
1
9184
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this will work for 9i and even 10g ) No one had what I needed, so I wrote it myself. I Rule. This code isn't going for efficiency, and isn't trying...
3
1867
by: John | last post by:
Hi I need to perform two queries in sequence on two identical access tables. The source table is coming from a dataset returned by a web method and the destination table is from a local access table. The queries are; UPDATE INNER JOIN srcTbl ON .entry_id = srcTbl.entry_id SET .field1 = ., .field2 = .;
7
2550
by: Richard Marsden | last post by:
(also posted to microsoft.public.access.odbcclientsvr but no reply so far: problem concerns ODBC->MS Access) I have some ODBC code that I'm testing against various underlying databases. The code was developed against MySQL but now I'm getting other common options to work. I'm having trouble with Access - even the sample code (intended for...
13
2074
by: MikeS | last post by:
I am relatively new to VB.Net so bear with me. I can add an OleDBDataAdapter using the Jet 4.0 with no problem (although I'm having problems getting Date and Time formats to carry over to the database). However, I can't seem to get the SQLDataAdapter to work. When I click on the provider tab it defaults to “Microsoft OLE DB Provider for...
1
2948
by: AudreyCole | last post by:
Hi. I have an Access front end .mdb file which in connected to Access tables in some locations and to SQL Server tables in others. It also is connected to an Access table for other data, regardless of whether the main back end tables are in Access/Jet or SQL. I need to make sure the link to this external table is good each time, so I set...
13
3709
by: magickarle | last post by:
Hi, I got a pass-through query (that takes about 15 mins to process) I would like to integrate variables to it. IE: something simple: Select EmplID from empl_Lst where empl_lst.timestamp between !! And !! Not sure how to do so (should it be a query in Access or a macro) The connection would be ODBC.
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7678
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.