Re: MSSQL vs. SYBASE
From: Erland Sommarskog (esquel_at_sommarskog.se)
Date: 08/11/04
- Next message: Adam Machanic: "Re: Can you use a CASE statement in the where clause?"
- Previous message: G.C.Mandrake: "Re: Need Help with this SQL query"
- In reply to: Lewis Howell: "Re: MSSQL vs. SYBASE"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 11 Aug 2004 19:44:14 +0000 (UTC)
Lewis Howell (lou_junkmail@yahoo.com) writes:
> I actually have an infinitely running stored proc that is a monitoring
> utility and works fine in SYBASE. In SQL Server I have to stop or cancel
> the stored proc to get any results. On occasion I get PRINT returns to
> different workstations using the ADO Connection message, but this is very
> inconsistent.
Here are two suggestions that I got when inquired at Microsoft:
An MVP colleague suggested that you could peek at the output buffer with
DBCC OUTPUTBUFFER. That would require you to poll the buffer, and then
interpret what you see. I don't think I would try that myself.
A Microsoft engineer pointed out that if you lower the packet size to
the minimum 512, buffering is not going away, but the buffers will be
flushed more often. I tested this, and it had some effect, but buffering
is still apparent, not surprisingly.
You can set the default packet size by reconfiguring SQL Server, but I
recommend that you only use this lower value for packet size when you
connect to run this monitoring stored procedures, as too low packet
size can be detrimental to performance for other type of applications.
Unfortunately, I have not been able to find out how to set the packet size
from ADO. It does not seem be possible from the connection string. But
it is possible that if you examine the Properties collection on the
Connection object that you find the value there. I believe that the
name is "Packet Size".
And please keep in mind what I said about client-side cursor vs.
server-side. Since you never got any output before you killed the
process, I suspect that you were using client-side cursors.
-- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
- Next message: Adam Machanic: "Re: Can you use a CASE statement in the where clause?"
- Previous message: G.C.Mandrake: "Re: Need Help with this SQL query"
- In reply to: Lewis Howell: "Re: MSSQL vs. SYBASE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|