Hello:
I have an application (using ADO 2.7 - written in VB) that access a SQL
Server 2000 Database.
Every once in a while, the program hangs when I am accessing the DB, and
sometimes I get a timeout expired error. The wierd thing is, when it hangs,
if you try the function again - it goes throught every time
For example, If I call a function that retrieves a password from a table in
the DB, it will hang (sometimes it hangs for a few seconds and then goes
throught, sometimes it will timeout and gives me the timeout expired error).
If I then call the same function immediately after, there will be no delay.
I am stumped on this, any help would be appreciated. I have tried shrinking
the DB and Backing it up to no avail.
Regards,
Ryan Kennedy 1 4265
Ryan P. Kennedy (ry*****@verizo n.net) writes: I have an application (using ADO 2.7 - written in VB) that access a SQL Server 2000 Database.
Every once in a while, the program hangs when I am accessing the DB, and sometimes I get a timeout expired error. The wierd thing is, when it hangs, if you try the function again - it goes throught every time
For example, If I call a function that retrieves a password from a table in the DB, it will hang (sometimes it hangs for a few seconds and then goes throught, sometimes it will timeout and gives me the timeout expired error). If I then call the same function immediately after, there will be no delay.
I am stumped on this, any help would be appreciated. I have tried shrinking the DB and Backing it up to no avail.
The most likely cause would of course be blocking. To investiagte this,
next time, you get stuck, issue an sp_who from Query Analyzer, and keep
an eye on the Blk column. A non-zero value in this column indicates that
the spid on this row is blocked by the spid in the Blk column.
You can also use the undocumented sp_who2 to get the same information,
but some some more information.
--
Erland Sommarskog, SQL Server MVP, so****@algonet. se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Silvia |
last post by:
I have a application web and when execute this for a long
time generated this error:
Server Error in '/RAIMServer' Application.
-----------------------------------------------------------
---------------------
Timeout expired. The timeout period elapsed prior to
obtaining a connection from the pool. This may have
occurred because all pooled connections were in use and
|
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 & "', '" & Context.User.Identity.Name & "'"
UpdateCommand.ExecuteNonQuery()
|
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 the "Connection Timeout=2400" string in the SqlConnection connections
string
- disabled connection pooling.
|
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
Here's the scenario:
1. .NET Windows Client on a remote machine makes a web service call to
update tables on a Web Server running SQL Server 2000.
2. The Update is updating about 1000 - 3000 records doing simple update
statements like "Update...
|
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 open a database connection.
The error seems to happen regardless of what ASP.NET app I'm working
with/trying to debug.
It will open a few connections,
Here's the error:
| |
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 to login (obviously it's using
ASPNETDB.mdf). Any ideas?
Server Error in '/' Application.
--------------------------------------------------------------------------------
|
by: bonita |
last post by:
If I add the code for user to download the file (e.g.
if(File.Exists(FILE_NAME)){......}), the ASP.NET will give the
following timeout error:
Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.
It seems that the download file code is executing before letting the
previous code to finish. Even the message print code
(message.Text="...";) is not executed.
|
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 as: (i
tried to run the stored procedure on query analyzer, and it works well)
Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.
Description: An unhandled exception occurred...
|
by: rn5a |
last post by:
I am working on Win2K Pro (SP4) with P4 2.80GHz, 256MB RAM & 20GB hard
disk (IIS5.0). I use Visual Web Developer 2005 Express Edition to
create & edit ASP.NET apps.
Whenever I log in to my m/c. & run any ASPX page in IE6.0 for the very
first time, I always get the following timeout expired error:
Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.
|
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 database. It was working fine when I was runing the site on the localhost. I added the following line to the web.config file to increase the timeout:
<httpRuntime
maxRequestLength="1048576"
executionTimeout="3600"/>
I also added: connection timeout =...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |