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

Error: 16954, Severity: 10, State: 1 and Timeout problem

Hi to all,

I have a problem I can not trace.
Andgeneraly this is my problem probably.

I have a SQL Server 2000 SP3 with one database.
On this DB are runing lot of threads from different applications. So
the access is multiple.

The problem is, on one of the applications (C++ programmed) I get from
time to time, problem, that the calls in database are sometimes
performed very very long.

If usualy it takes like 50ms, sometimes it takes up to over one minute!

I can not trace, why the application need so long time, to perform this
statement.
I've checked the code, but it seams to be ok.
Probably, other aplication are locking resources, so the first one need
to wait so long.

Question is, how to find out, which one is locking the resources, or
maybe which resources for so long?

I was trying to analyze SQL Profiler, but the only error I found was
this one:

Error: 16954, Severity: 10, State: 1
Help me, how to diagnose the problem. How can I trace, which processes
are blocking eachother.

Any advise will be helpful..

Thanks - Matik

Jun 20 '06 #1
2 6624
Matik (ma****@sauron.xo.pl) writes:
I have a SQL Server 2000 SP3 with one database.
On this DB are runing lot of threads from different applications. So
the access is multiple.

The problem is, on one of the applications (C++ programmed) I get from
time to time, problem, that the calls in database are sometimes
performed very very long.

If usualy it takes like 50ms, sometimes it takes up to over one minute!

I can not trace, why the application need so long time, to perform this
statement.
I've checked the code, but it seams to be ok.
Probably, other aplication are locking resources, so the first one need
to wait so long.

Question is, how to find out, which one is locking the resources, or
maybe which resources for so long?

I was trying to analyze SQL Profiler, but the only error I found was
this one:

Error: 16954, Severity: 10, State: 1
The text for this message is "Executing SQL directly; no cursor."
Help me, how to diagnose the problem. How can I trace, which processes
are blocking eachother.


You could try my aba_lockinfo. This stored procedure gives you a
snapshot of what is going on. Which processes that are active,
which are blocking and which are block. You get what they lock,
what they are waiting for, and their current statement. You find it on
http://www.sommarskog.se/sqlutil/aba_lockinfo.html.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Jun 20 '06 #2

Thank's Erland!

Matik

Erland Sommarskog napisal(a):
Matik (ma****@sauron.xo.pl) writes:
I have a SQL Server 2000 SP3 with one database.
On this DB are runing lot of threads from different applications. So
the access is multiple.

The problem is, on one of the applications (C++ programmed) I get from
time to time, problem, that the calls in database are sometimes
performed very very long.

If usualy it takes like 50ms, sometimes it takes up to over one minute!

I can not trace, why the application need so long time, to perform this
statement.
I've checked the code, but it seams to be ok.
Probably, other aplication are locking resources, so the first one need
to wait so long.

Question is, how to find out, which one is locking the resources, or
maybe which resources for so long?

I was trying to analyze SQL Profiler, but the only error I found was
this one:

Error: 16954, Severity: 10, State: 1


The text for this message is "Executing SQL directly; no cursor."
Help me, how to diagnose the problem. How can I trace, which processes
are blocking eachother.


You could try my aba_lockinfo. This stored procedure gives you a
snapshot of what is going on. Which processes that are active,
which are blocking and which are block. You get what they lock,
what they are waiting for, and their current statement. You find it on
http://www.sommarskog.se/sqlutil/aba_lockinfo.html.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Jun 30 '06 #3

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

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
4
by: Jason | last post by:
My understanding is that in a stored procedure (or any code for that matter) if an error occurs you can detect it by checking @@error variable and raise your own error with raiserror statement. ...
1
by: Patrick Dunnigan | last post by:
Hi, I am attempting a bulk copy from a c program into SQL Server 2000 using DBLib in freeTDS 0.63 RC11 (gcc 3.4.3, RH 9). I am getting an error message that I cannot find any documentation on. ...
3
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes....
0
by: Maciek | last post by:
Hi, I have this question regarding SQL Server error 3621: "The statement has been terminated." and trapping it in Try...Catch block. I've written sample Stored Procedure which intentionally...
3
by: wreed | last post by:
Our SQL Server 200 box is getting perflib errors when we get a decent amount of people using an application that I wrote, call queue system, web based. To accomplish a queue type system on a...
1
by: nehasharma | last post by:
function FadingTooltip(htmlElement, tooltipContent, parameters) { if (!htmlElement || typeof(htmlElement)!="object") throw "Sorry, htmlElement argument of FadingTooltip should be an...
1
by: codedhacker | last post by:
I have a piece of code that uses the db-library with sql server 2000/2005 and runs the following delete statement: DELETE FROM TABLE1 WHERE COL1 IN( 'Some Val1' ) AND COL2 IN( 'Some Val2' )...
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: 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...
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
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,...

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.