Viewing 15 posts - 1 through 15 (of 152 total)
The table has about 1.5 billion rows, maybe that's why it's not able to correctly estimate the "Estimated Rows". Query is not timing out, it is using the execution plan...
October 13, 2014 at 9:38 am
I rebuild the stats and reran the query, attached is the Index Seek values on the same index.
October 10, 2014 at 3:51 pm
I can try to rebuild the stats, but if stats are out of date it still picked the correct index.
It's a prod server so can't clear the cache but i...
October 10, 2014 at 3:30 pm
Yes, the log shipping itself works but once we try to bring the db in standby mode to run the ETL it complains that db first need to be upgraded...
August 13, 2014 at 3:53 pm
We run ETL daily and currently it takes about 12 hours.
August 13, 2014 at 12:15 pm
Agree but it's a very large 5tb+ DW so rebuilding index might not be an option for us in favor of quick cut-over.
August 1, 2014 at 9:21 am
Thanks Grant. So do we still need to update statistics as suggested by Microsoft?
We are not planning to change the compatibility level until after couple of weeks of migration to...
July 1, 2014 at 8:29 am
Thanks a lot. Do you know the command to run plink from sql agent?
June 19, 2014 at 9:34 am
Luis Cazares (10/4/2013)
Here's an example, but without some data more similar to the real data, it's hard to give...
October 4, 2013 at 12:44 pm
Thanks for the suggestions guys. I am sorry i should not have used "P1" & "p2" as codes, these are just my examples codes actual values won't have any correlation...
October 4, 2013 at 10:11 am
Thanks Luis i did some changes and here is what is giving me my expected results.
SELECT DATEDIFF(DD, date1, date2), DATEDIFF( mm, date1, date2), DATEDIFF( mm, date1, date2) + CASE WHEN...
August 13, 2013 at 11:53 am
A = Sum(NoOfBooks) for a child
B = Sum(NoOfBooks) for a child's each parents
Could you tell us exactly how these two values are calculated for each row in your sample data?
That...
August 6, 2013 at 2:58 pm
I think i got this one.
WITH A as
(
SELECTcast('FirstCall' as varchar(100)) Cal, 0 DiffBtwCalls, *
FROM [MyTransactions]
WHERESNRank = 1
UNION ALL
SELECTcast(CASE WHENFirstCall.SNRank IS NOT NULL
AND FirstCall.TFunction = 'activate'
AND SecondCall.TFunction = 'activate'...
February 13, 2013 at 4:10 pm
mister.magoo (2/13/2013)
:w00t: You're welcome, but really don't use that for anything important..you will get bitten eventually 😎
Already seeing that 😀 but we understand the risk.
February 13, 2013 at 12:13 pm
Viewing 15 posts - 1 through 15 (of 152 total)