Viewing 15 posts - 1 through 15 (of 15 total)
After updating the statistics, the queries are incredibly fast. The timing issue was ongoing but didn't follow any pattern. I am going to update the statistics prior to...
March 25, 2008 at 10:39 pm
Thanks for the reply. I'm just trying to figure out how two different databases on seperate machines with similar hardware would be performing so differently (machine A takes 6...
March 25, 2008 at 12:44 pm
Yes, this is exactly what i was looking for! Thanks so much!!!
February 1, 2008 at 6:57 am
Thanks for the reply. i'm not sure the union will work because my query can't use literal values like that. it needs to somehow get all records of...
January 31, 2008 at 3:17 pm
Hi Jack,
Thanks for the reply. My tests with web services (specifically WCF using TCP binding) have shown that the query I mention in my post takes about 14 seconds...
October 23, 2007 at 8:36 am
Thank you for your time. I agree that normalization would be key here but unfortunately is not an option. I won't name names but the database that this...
September 2, 2005 at 1:19 pm
this is the code of the proc:
---------------------------------------
CREATE PROCEDURE [dbo].[BestSellingItemsWebTransFull]
@beginDate varchar(8),
@endDate varchar(8),
@sourceCode varchar(16),
@sourceRef varchar(16),
@cartid varchar(20),
@customerType char(2),
@division char(2),
@category varchar(4),
@vendorNo varchar(10),
@useCustType int
AS
DECLARE @sourceCodeCart varchar(16)
CREATE TABLE #ORDERNOS (
ORDERNO char(8)
)
CREATE TABLE #ITEMCOUNT (
EDP int,
AMT int
)
CREATE...
September 1, 2005 at 3:07 pm
Just out of curiosity, would it be more efficient to break a huge proc into smaller stored procedures that do their respective things. This procedure does some ugly things...
August 25, 2005 at 9:20 am
Thanks for your help. Your pointers are much appreciated and your help has been great in getting me started on fixing this proc. Take it easy.
Thanks,
Paul
August 24, 2005 at 2:57 pm
ok, that worked! Here are the results once I ran it:
---------------------------
StmtText ...
August 24, 2005 at 2:22 pm
I tried that as well and I get the same error with the set on/off in there. I've never used table variables so I'll need to check into that....
August 24, 2005 at 2:02 pm
It does work if I run the proc without the set on/off.
August 24, 2005 at 1:48 pm
This is what I tried to run:
------------------------------------
SET SHOWPLAN_TEXT ON
GO
DECLARE @rc int
DECLARE @beginDate varchar(8)
DECLARE @endDate varchar(8)
DECLARE @sourceCode varchar(16)
DECLARE @sourceRef varchar(16)
DECLARE @cartid varchar(20)
DECLARE @customerType char(2)
DECLARE @division char(2)
DECLARE @category varchar(4)
DECLARE @vendorNo...
August 24, 2005 at 1:29 pm
I did the above and got an error message: Invalid object name '#ORDERNOS'.
I am using temp tables in this proc.
--Paul
August 24, 2005 at 12:36 pm
Thank you very much. That worked like a charm. I really appreciate it.
Paul
August 24, 2005 at 11:41 am
Viewing 15 posts - 1 through 15 (of 15 total)