Viewing 15 posts - 1,411 through 1,425 (of 10,144 total)
BWFC (7/6/2016)
Phil Parkin (7/5/2016)
tindog (7/5/2016)
Michael L John (7/5/2016)
July 6, 2016 at 1:47 am
In addition to everything Grant has said, it's worth noting that the performance of any query depends upon the accuracy of the information which SQL Server can obtain from it....
July 5, 2016 at 9:46 am
Grant Fritchey (7/5/2016)
July 5, 2016 at 6:16 am
shirolkar.anand (7/5/2016)
Please try using following code-
DECLARE @T TABLE (ID INT, NAME VARCHAR(1))
INSERT @T VALUES (1000,'A'),(990,'C'),(980,'A'),(970,'A'),(960,'B'),(950,'C'),(930,'A')
SELECT * FROM(SELECT ROW_NUMBER() OVER( PARTITION BY NAME ORDER BY ID DESC)ROWNUM,ID,NAME FROM @T )T
WHERE...
July 5, 2016 at 5:42 am
Raghavender (7/5/2016)
But I did not understand why substring made all the noise.Then how it worked after changing it to like 'UD1\%'
The expression LIKE 'UD1\%' is SARGable, meaning SQL Server can...
July 5, 2016 at 5:41 am
Can we have an actual plan from the fast query please? Thanks.
Here are some suggested improvements for your WHERE clause:
WHERE UD.EmployeeType IN (0,1)
AND NL.NetworkLogonId LIKE 'UD1\%'
--AND SUBSTRING(NL.NetworkLogonId, 1, CHARINDEX('\', NL.NetworkLogonId)-1)...
July 5, 2016 at 3:30 am
Raghavender (7/5/2016)
ChrisM@Work (7/5/2016)
Raghavender (7/5/2016)
Please find the attachment.1027.sqlplan is test server where query executing with in 3 sec.
1048.sqlplan is production where we have the issue.
Can you please add OPTION(MAXDOP 1) to...
July 5, 2016 at 2:35 am
Raghavender (7/5/2016)
Please find the attachment.1027.sqlplan is test server where query executing with in 3 sec.
1048.sqlplan is production where we have the issue.
Can you please add OPTION(MAXDOP 1) to the query...
July 5, 2016 at 2:26 am
Raghavender (7/4/2016)
One observation is it is blocking it self.
I can see n number of processes with same SPID. In that where...
July 4, 2016 at 9:48 am
Well done dandrews, and many thanks for the feedback.
July 4, 2016 at 6:04 am
dandrews 45259 (7/4/2016)
072216 is a...
July 4, 2016 at 5:34 am
Viewing 15 posts - 1,411 through 1,425 (of 10,144 total)