473,383 Members | 1,978 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,383 software developers and data experts.

HandleError?

Hello,

I have an existing database-application which has some problems with
fetching datas from a database server. at the moment we think it has to do
with the workload on the database server, but as we are not really sure i
would like to know your opinion.

first a genearal question: if i have the call:

functionxy(selectWorklogCmd.ExecuteReader(), dest);

is the selectWorklogCmd executed right now or only when the code reaches the
part:
"while (odbcreader.Read)" ?

because this is the part where it takes a long long time and most of the
time the application stops and this point with the message:

7/20/2006 3:56:47 PM Exception: ERROR [42S] Driver]Cannot open catalog;
Message number = 94. prod_race.sie.siemens.at
7/20/2006 3:56:47 PM Stack trace:
at System.Data.Odbc.OdbcConnection.HandleError(Handle Ref hrHandle,
SQL_HANDLE hType, RETCODE retcode)
at System.Data.Odbc.OdbcDataReader.Read()
at Actis.Interface.ActisOdbcInterface.doFetchWorkLogs (OdbcDataReader
reader, MySqlConnection dest, DataTable blackList, Int32& count)
at Actis.Interface.ActisOdbcInterface.fetchNewWorkLog s(MySqlConnection
dest, DataTable blackList, String country)
at Actis.Interface.FetchActisDataService.OnTimedEvent (Object source,
ElapsedEventArgs e)
but like 30 % the queries work, that is so strange.

Has anybody an idea how to solve the problem or why this problem occurs? We
try to transfer data from a oracle db to mysql.
i am not so experienced in the area, so sorry if i forgot to tell you some
important informations and just let me know!

thank u very much in advance!

best regards,

till
Jul 20 '06 #1
2 2359
The error shown the database not found. So check the path or server name
perhaps.

chanmm

"Till M" <ti*********@siemens.comwrote in message
news:e9**********@daniel-new.mch.sbs.de...
Hello,

I have an existing database-application which has some problems with
fetching datas from a database server. at the moment we think it has to do
with the workload on the database server, but as we are not really sure i
would like to know your opinion.

first a genearal question: if i have the call:

functionxy(selectWorklogCmd.ExecuteReader(), dest);

is the selectWorklogCmd executed right now or only when the code reaches
the
part:
"while (odbcreader.Read)" ?

because this is the part where it takes a long long time and most of the
time the application stops and this point with the message:

7/20/2006 3:56:47 PM Exception: ERROR [42S] Driver]Cannot open catalog;
Message number = 94. prod_race.sie.siemens.at
7/20/2006 3:56:47 PM Stack trace:
at System.Data.Odbc.OdbcConnection.HandleError(Handle Ref hrHandle,
SQL_HANDLE hType, RETCODE retcode)
at System.Data.Odbc.OdbcDataReader.Read()
at Actis.Interface.ActisOdbcInterface.doFetchWorkLogs (OdbcDataReader
reader, MySqlConnection dest, DataTable blackList, Int32& count)
at Actis.Interface.ActisOdbcInterface.fetchNewWorkLog s(MySqlConnection
dest, DataTable blackList, String country)
at Actis.Interface.FetchActisDataService.OnTimedEvent (Object source,
ElapsedEventArgs e)
but like 30 % the queries work, that is so strange.

Has anybody an idea how to solve the problem or why this problem occurs?
We
try to transfer data from a oracle db to mysql.
i am not so experienced in the area, so sorry if i forgot to tell you some
important informations and just let me know!

thank u very much in advance!

best regards,

till


Jul 20 '06 #2

"chanmm" <ch*****@hotmail.comwrote in message
news:eQ****************@TK2MSFTNGP05.phx.gbl...
The error shown the database not found. So check the path or server name
perhaps.

chanmm
Thank you for your answer!
but how can it be possible, because in 30 % of the cases the database
queries are successful, so the database path is found. Can anybody explain
it?

thanks again!

till
Jul 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Kim | last post by:
I have a .NET service sending mails using CDOEX. These mails I need to sign. I got a tip that I should use CAPICOM. That worked fine sending a mail with signature. BUT the problem is that I...
7
by: Steve | last post by:
I have a .NET application with a sql server database backend. Our client has been having problems lately with data being returned from the database with wrong data. We have error logging in our...
6
by: jchao123 | last post by:
Dear All, I have an MDB file (Access 2000/XP) which contains generic routines I use in various apps (eg, API calls, File access classes etc). I have compiled into an MDE file which I reference...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
1
by: Ersin Gençtürk | last post by:
We couldn't find why these errors happen.They doesn't appear everytime.And they appear different pages at different times.Is there somebody know why these happenes ? First user gets this error :...
18
by: amdishigh | last post by:
We are experiencing the following problems concerning ASP.NET: our ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0 environment, experience frequent session timeout problem....
3
by: Nils Magnus Englund | last post by:
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection...
26
by: Grim Reaper | last post by:
Just a quick and probably daft question... Isn't the code; Try DoSomething() Catch e As Exception HandleError(e) Finally DoThisAtTheEnd()
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.