Solved

RPC Call VS. Query Analyzer

Posted on 2006-06-30
9
375 Views
Last Modified: 2008-02-01
I have a weird problem here that I can't seem to figure out.  Here's the jist of it:

When a certain VB application executes a stored procedure via an RPC call, it ends up timing out (beyond 5 minutes).  I verified that the SQL server is indeed receiving the RPC call (it shows up in Profilder, and Ethereal).  The VB app terminates the process after 5 mintues because the SP apparently is still going.  

When I execute the SAME stored procedure using the same paramters from Query Analyzer, it takes 25 seconds.  

I have some index tuning plans I will implement soon that will take it from 25 down to 1 seconds or less using the Analyzer, but, I still don't know why it times out from the RPC call.

So my question is, what's the main difference here that makes the Query Analyzer so much quicker?

Thanks for the help.
0
Comment
Question by:TheTull
  • 5
  • 2
9 Comments
 
LVL 14

Expert Comment

by:sathyagiri
ID: 17020948
Do you have any RAISERROR WITH NOWAIT in your SP?

If so, it seems there's a bug in SQL server which causes your situation
0
 
LVL 7

Author Comment

by:TheTull
ID: 17020963
There are several RAISERROR statements, but none with a NOWAIT statement included.

What is this bug?
0
 
LVL 14

Expert Comment

by:sathyagiri
ID: 17020992
Are you using a clustered server  of some sort?

Please post your OS, Server versions etc
0
 
LVL 7

Author Comment

by:TheTull
ID: 17021002
No clustered servers,

Running Microsoft SQL Server 2000 on Windwos 2000 Server.

0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 7

Author Comment

by:TheTull
ID: 17021024
Another interesting thing I will throw out there,

Sometime over a month ago, our SQL server process sqlservr.exe was running happily at 1.7 Gigs of RAM usage.  When I restarted it about a month ago, it will no longer go past 90,000 K of RAM.  However, the RAM availalbe under the task manager is at 1 GIG (we have 4 GIG on this server).  And SQL server appeared to have been running well.  So, I don't know why it is sticking at 90 Megs like that instead of jumping back to 1.7 Gigs.
0
 
LVL 7

Author Comment

by:TheTull
ID: 17021058
Suddenly it takes forever using Query Analyzer too....

Sigh, I am going to have to do some more testing and whatnot.
0
 
LVL 7

Author Comment

by:TheTull
ID: 17033267
Fixed the "Entire" problem by dropping the primary key on the table, then re-applying it.  This caused the PK index (which was corrupted) to be re-created, thus fixing all issues where I was unable to select any data what so ever.

Everything is nice and happy with the server now, thanks for the help.

0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 17075221
Closed, 500 points refunded.
Netminder
Site Admin
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
This article describes some very basic things about SQL Server filegroups.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now