?
Solved

RPC Call VS. Query Analyzer

Posted on 2006-06-30
9
Medium Priority
?
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 7

Author Comment

by:TheTull
ID: 17021002
No clustered servers,

Running Microsoft SQL Server 2000 on Windwos 2000 Server.

0
 
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

770 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