Unix Technical Forum

7.0 Weird Query Results

This is a discussion on 7.0 Weird Query Results within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I have a strange scenerio happening. Here's the details: I'm connecting to SQL 7.0 using ODBC from an ASP ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:14 PM
David Wilson
 
Posts: n/a
Default 7.0 Weird Query Results

I have a strange scenerio happening. Here's the details:

I'm connecting to SQL 7.0 using ODBC from an ASP
application on a separate web server.

This ASP connection calls a COM+ object which only serves
as a middle man for connectivity. (Doesn't actually house
its own query strings)

Anyway, on one particular stored proc that I call, I
receive a 'timeout expired' message back from SQL.
However, I CAN run the procedure under a few different
circumstances:

A) I create a new, identical stored procedure with just
a different name and use it instead

B) I create a new index and change the hardcode in the
current stored proc to use that index.

C) I add the command 'With Recompile' to the end of my
stored proc query string.


Each of these options will successfully allow me to run
the stored proc for my ASP page. I don't have ANY issues
if I run the stored proc from Query Analyzer.

So my question is... WHY the fickle, anal response from
SQL 7.0? It ONLY happens from my ASP page, and I can
solve it by the most stupid tactics (ie. change the
stored proc name to a new identical stored proc, or
add 'with recompile). This truly makes no sense, and is
obviously a bug. Has anyone ever hear of it before?
Know the solutions?

My SQL 7.0 box is fully updated with MDAC 2.7 SP1 and SQL
SP4. It's on Win Advanced Server 2000 wich also is fuly
updated.

My IIS box runs IIS 5.0 on Win 2000 Server, which is
fully updated. (Including MDAC)

My COM+ component is well coded with no issues anywhere
else, and by the way, uses MDAC 2.7

Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com