Viewing 15 posts - 1,321 through 1,335 (of 10,144 total)
August 8, 2016 at 6:47 am
vijay.vesanekar (8/8/2016)
I have implemented this logic at client side it helps to improve the performance
Before Logic (Time Taken) 18 Hr to 24 Hrfor 66 Rows
After change in logic...
August 8, 2016 at 5:49 am
Thanks.
Firstly, the estimate of the rowcount coming out of the table join is on the low side: as a result, the sort operator supporting the stream aggregate is twice as...
August 8, 2016 at 4:53 am
radu.gheorghiu (8/8/2016)
August 8, 2016 at 2:38 am
radu.gheorghiu (8/8/2016)
August 8, 2016 at 2:24 am
Hi Mitch, thanks for posting. It looks a little over-engineered for what it's supposed to be doing. This does the same much faster and with less code:
DECLARE @ExtraYearsEitherSide TINYINT =...
August 8, 2016 at 2:09 am
Hugo Kornelis (8/5/2016)
ChrisM@Work (8/5/2016)
I've seen you deal with Stump the Chump, Hugo. SQL Bits Nottingham I think - a presentation on MERGE. It worked just fine.
I did?
Really?
I always say that...
August 5, 2016 at 9:18 am
Hugo Kornelis (8/5/2016)
ChrisM@Work (8/5/2016)
Grant Fritchey (8/5/2016)
BLOB_EATER (8/5/2016)
August 5, 2016 at 9:02 am
Grant Fritchey (8/5/2016)
BLOB_EATER (8/5/2016)
My...
August 5, 2016 at 8:22 am
SQL Sentry Plan Explorer has an obfuscation option - so you can mask actual table and column names to get around NDA's. Since you've already published the original query a...
August 5, 2016 at 7:09 am
TSQL Tryer (8/5/2016)
Here is an example of data in that field -
8 Brick Lane and 11 Balkerne Drive or it could...
August 5, 2016 at 1:58 am
DECLARE @EndDate DATETIME = GETDATE()
DECLARE @StartDate DATETIME = DATEADD(YEAR,-1,@EndDate)
SELECT @StartDate, @EndDate;
WITH t1 AS (SELECT * FROM (VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0)) d (n)),
t2 AS (SELECT n = 0 FROM t1 a, t1 b),
t4...
August 4, 2016 at 9:49 am
radu.gheorghiu (8/4/2016)
But if I look at the cached plans and this is the one whose last execution time was during the execution...
August 4, 2016 at 8:24 am
radu.gheorghiu (8/4/2016)
, cast(qp.query_plan as xml)[Execution plan]
from sys.dm_exec_query_stats as qs
cross apply sys.dm_exec_sql_text (qs.sql_handle) as st
cross apply sys.dm_exec_text_query_plan (qs.plan_handle, qs.statement_start_offset, qs.statement_end_offset) as qp
And as per documentation, it...
August 4, 2016 at 8:09 am
radu.gheorghiu (8/4/2016)
1. It's the actual execution plan, not the estimated. The execution plan from above is taken from querying the DMVs mentioned in my post....
That makes it an estimated plan.
--...
August 4, 2016 at 7:43 am
Viewing 15 posts - 1,321 through 1,335 (of 10,144 total)