Solved

RPC Call VS. Query Analyzer

Posted on 2006-06-30
9
416 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
Upcoming Webinar: Securing your MySQL/MariaDB data

Join Percona’s Chief Evangelist, Colin Charles as he presents Securing your MySQL®/MariaDB® data on Tuesday, July 11, 2017 at 7:00 am PDT / 10:00 am EDT (UTC-7).

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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…
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…

690 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