Solved

RPC Call VS. Query Analyzer

Posted on 2006-06-30
9
386 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…

911 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

19 Experts available now in Live!

Get 1:1 Help Now