473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Performanceproblems with action Pass-Through-Query

2
hallo developerfriends,

I have a urgent problem with transfering Data from a DB2-Server to Access97.
Tranfer runs by following steps:
1. creating pass-through-query
2. runing action-query based on pass-through (insert into)

Problem: for about 50.000 Datasets Access97 needs about 1min. To long for the users.
The responce time of the Pass-Through is 5 to 10 sec. Transfering Data about 50 sec.

Question: Is there somebody who can tell me how I can increase the datatransfer performance.

Thechnical Data:
System: Windows 2000 Pro
Access: 97
Net-Link: 100 MBit/s

My Code:

1. Generate Query
Sub PassThroughQuery_generieren(DB2_Tab As String)
Dim qry As QueryDef
Dim F_EA As String
Dim F_Kst As String


'Filter generieren
F_EA = FilterGenerieren("EA")
F_Kst = FilterGenerieren("OEKst")

'PassThrough-Abfrage (Tmp) generieren
strSQL = "SELECT * FROM DB2EP01D.EP01TLZ1" & _
" WHERE (EANR='34018' or EANR='43126' or EANR='88087')" & _
" and (KST='2718' or KST='5719' or KST='6704' or KST='6725' or KST='6727' or KST='6736')" & _
" FOR FETCH ONLY"

If QryExistJN("Tmp") Then DoCmd.DeleteObject acQuery, "Tmp"
Set qry = CurrentDb.CreateQueryDef("Tmp")

With qry
.Connect = "ODBC;DATABASE=jjj;UID=xxx;PWD=fff;" & _
"DSN=db2"
.SQL = strSQL
End With
End Sub

2. Import Data to Acces
Sub PassThoughQueryDaten_importieren(ZTab As String)

strSQL = "SELECT Tmp.* INTO " & ZTab & "" & _
" FROM Tmp;"
ExeSQL (strSQL)

End Sub

Greetings
riki
Jul 19 '06 #1
1 2037
riki71
2
Sorry my Import Sub was the wrong one. I import by insert into

2. Import Data to Acces
Sub PassThoughQueryDaten_importieren(ZTab As String)

strSQL = "INSERT INTO " & ZTab & "" & _
" SELECT Tmp.*" & _
" FROM Tmp;"
ExeSQL (strSQL)

End Sub

Greetings
riki
Jul 19 '06 #2

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

Similar topics

10
by: iam247 | last post by:
Hi In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action: <form name="form" method="post" action="RegDetails.asp"> ...
2
by: iam247 | last post by:
Hi In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action: <form name="form" method="post" action="RegDetails.asp"> ...
6
by: tencip | last post by:
Hi everyone, So, i've got a form that is very simple. It hold three elements: username, password, and domain. The goal here is to have the form submit the login to an administrative section...
3
by: | last post by:
I have created a web setup project for my ASP.NET application that works fine. Also, I have followed the instructions for using a custom action to launch a web page after the installation is...
3
by: Don Parker | last post by:
I am a newbie to ASP.NET. I am converting some asp pages I had working. I have a page which has a form with several input elements. When the user clicks on a Submit element - the action specified...
4
by: ANTISPAM_garycnew_ANTISPAM | last post by:
I am trying to figure out the best way to change a form's action based on a single text input event. I have a search form within a larger form and would like to allow users to use the enter key...
2
by: sheldonlg | last post by:
I have used the action= statement to send the form to a new page which can get the posted variables. I have used the header("Location: foo.php) statement after testing on the submit with isset....
8
by: M.L. | last post by:
Hello. I created a form using JS validation with the form tag as follows: <form name="form1" action="dynaform.php" method="post" onsubmit="return pvg_sub();"> The js validation script sends...
0
by: azoapes | last post by:
Hi, I've made a Setup Project to my C# WinApp and added a custom dialog to it that asks for user/pass for a database server. Then I created a Custom Action class and override the Install() to check...
1
by: =?Utf-8?B?RGFtaXIgRGV6ZWxqaW4=?= | last post by:
Hi. I have to implement an Java Axis2 web service client in .NET WCF as well a web service to witch a Java Axis2 client will connect. I would like to provide user identification using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.