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

Timeout expired while retrieving data from table

Hello to all

I am using an application which is in vb6.0 and database in MSSQL server 2k.
I am using connection string through ADO.
Some times I receive message Timeout expired when I retreive data from table e.g
Vendor (Select * from Vendor) through vb6.0 application .

When I retreive data from table through SQL Server enterprise manager It
also generate Timeout expired message.

For the time being to get rid this error I restart database server or
Kill the ProcessID through MSSQL Server enterprise manager
Management->Current Activity->Process Info.

Please advice why this error come and how I can get rid this error through proper channel.

Note : Vendor table is not more than 500 rows.



Thanx in advance
Sep 27 '07 #1
4 6169
debasisdas
8,127 Expert 4TB
This problem is becasue it is taking too long to establish the connection from VB to SQLServer.

You need to set the Connection.ConnectionTimeout property in VB6.0
Sep 27 '07 #2
This problem is becasue it is taking too long to establish the connection from VB to SQLServer.

You need to set the Connection.ConnectionTimeout property in VB6.0
Thanx dear for reply

I have also set connection.connectionTimeout property but why same error come when I reterieve data from MSSQL Server enterprise talble return all rows. while table contains only 500 rows
Sep 27 '07 #3
debasisdas
8,127 Expert 4TB
It does not matter what is the number records that you are trying to retrive. It depends what is the time taken to establish the connection. It depends on alot of factors like network speed and also hardware.
Sep 27 '07 #4
davef
98
It does not matter what is the number records that you are trying to retrive. It depends what is the time taken to establish the connection. It depends on alot of factors like network speed and also hardware.
Since you seem to get a timeout error even via the console, check out whether you have any locks on the table.
Sep 27 '07 #5

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

Similar topics

4
by: Paul | last post by:
I sometimes get a timeout error when populating my datagrid, the code is WizardConnection.Open() UpdateCommand.CommandText = "EXECUTE sp_assign_user '" & PhysOffice.SelectedValue & "', '" &...
5
by: Jason | last post by:
Hi all I get the following error when executing a rather intense stored procedure from an ASPX page. I have tried: - Increasing timeouts on IIS 5.0 (all areas that even mention timeout) - use...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
5
by: Tim W. | last post by:
Folks. In a B2B Procurement system we've created, we got following Session-Issue: Configuration: We are using IIS 6.0 and added SQL-Based-Sessions in web.config with a timeout of 240 minutes...
4
by: Nevyn Twyll | last post by:
I've been working on an asp.net application and everything's been great. But suddenly, whether I'm tyring to use a database on my own machine, or on my server, I'm getting a timeout when trying to...
4
by: VB Programmer | last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When I precomile it to my web deployment project and then copy the debug files to my web server I get this problem when trying...
1
by: Ron | last post by:
Hi, I had a stored procedure on SQL 2000 server to run calculation with large amount of data. When I called this stored procedure via System.Data.SqlClient.SqlCommand on production, i got error...
7
by: dadocsis | last post by:
I have a custom VB.net application that runs a query against an SQL server that takes more than 3 minutes. Right now after 3 minutes it times out. So far after doing my research I have changed the...
1
by: Scorpion657 | last post by:
Hey I really need help. I have a Website coded using ASP.NET and VB and for some reason, i'm getting the following error when I try to upload or access a large file which is stored in the...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
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...
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...

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.