473,473 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

database read timeout error

I've got a c# app that reads a database of 3,000 records. "Interesting"
thing is when I access 3 certain records, I get a database timeout error.
The code is very simple, and runs fine for the other 2,999 records, and if I
run the exact same SQL with query analyzer, it runs fine.

Anyone come across a similar problem, or know what I should be looking at
for this?

Dunc
Nov 16 '05 #1
3 1413
When you run the query in your c# code do you have a transaction around it?
If so also add the transaction in query analyser and see if it also fails
there.

Hope that helps
Paul

"Dunc" <du**@ntpcl.f9.co.uk> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
I've got a c# app that reads a database of 3,000 records. "Interesting"
thing is when I access 3 certain records, I get a database timeout error.
The code is very simple, and runs fine for the other 2,999 records, and if I run the exact same SQL with query analyzer, it runs fine.

Anyone come across a similar problem, or know what I should be looking at
for this?

Dunc

Nov 16 '05 #2
Nope, no transaction. It's just a simple SP that returns 9 very simple
tables. Thanks for the suggestion anyway...

Dunc

"Paul Roberts" <Pa*********@nospam.nospam> wrote in message
news:uv*************@TK2MSFTNGP11.phx.gbl...
When you run the query in your c# code do you have a transaction around it? If so also add the transaction in query analyser and see if it also fails
there.

Hope that helps
Paul

"Dunc" <du**@ntpcl.f9.co.uk> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
I've got a c# app that reads a database of 3,000 records. "Interesting"
thing is when I access 3 certain records, I get a database timeout error. The code is very simple, and runs fine for the other 2,999 records, and if
I
run the exact same SQL with query analyzer, it runs fine.

Anyone come across a similar problem, or know what I should be looking

at for this?

Dunc


Nov 16 '05 #3
Hi,

what kind of fields they have? is anybody else accesig the same table from
another application, maybe somebody has a lock on it, are you using a
datareader ?

I have never seen this before, te only thing I can think of is that, that
somebody has locked those records.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Dunc" <du**@ntpcl.f9.co.uk> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
I've got a c# app that reads a database of 3,000 records. "Interesting"
thing is when I access 3 certain records, I get a database timeout error.
The code is very simple, and runs fine for the other 2,999 records, and if I run the exact same SQL with query analyzer, it runs fine.

Anyone come across a similar problem, or know what I should be looking at
for this?

Dunc

Nov 16 '05 #4

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

Similar topics

11
by: HolaGoogle | last post by:
hi all, can you please tell me what i should do to avoid session timeout when displaying my database info in my asp form (DisplayUserDatabase.asp)??? ** actualy it does load and display the...
3
by: DarthMacgyver | last post by:
Hello, I recently wrote a survey application. Each question is very similar. The first questions gives me a problem when there are multiple people taking the survey (The Database connection...
3
by: Maellic | last post by:
Hi, The website I am working on is built with ASP.NET and connects to a SQL Server 2000 database. The web server and database are on the same machine. I have recently tried to modify the timeout...
0
by: Johanna | last post by:
Hello, Thread was being aborted exception is thrown by my asp.net application. I hope someone could help me with this error that I get in windows 2003 server. This error has not occured with...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
0
by: jj .NET | last post by:
I have several sites and membership databases on the same test computer. They all have different names, so there is no problem. However, now my Website Administration Tool won't create the...
0
by: Jonathan Wood | last post by:
I seem to be having errors creating and accessing an SQL database. Unfortunatley, I am brand new to SQL setup and administration issues so this really is not my area of expertise. I know I had...
1
by: Mani | last post by:
Hi, This is the second time i am posting this question, since i didnt get any reponse from my previous post. When i tried to execute the script in browser, i am getting the following...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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...
0
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...
0
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,...
1
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...
0
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...
0
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 ...

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.