Viewing 15 posts - 2,371 through 2,385 (of 10,144 total)
Sam Garth (7/1/2015)
I am trying to increase performance of a query that joins a table 19 times.
The current example works similarly to below...
CREATE TABLE #Data(PersonID INT, Activity nvarchar(200), ActivityTime DATETIME)
INSERT...
July 1, 2015 at 7:31 am
Tac11 (6/30/2015)
...I didn't understand why execution plan suggesting me to create non-clustered index on this while the table already has a clustered index!!!
July 1, 2015 at 3:35 am
Alan.B (6/30/2015)
...Based on my testing, the function appears to perform a bit faster using CHECKSUM over ROW_NUMBER() instead of the conversion to BIGINT in the TOP clause. ...
So CHECKSUM over...
July 1, 2015 at 1:58 am
Paul White (6/30/2015)
ChrisM@Work (6/30/2015)
June 30, 2015 at 9:54 am
Jeff Moden (6/30/2015)
ChrisM@Work (6/30/2015)
Paul White (6/28/2015)
June 30, 2015 at 8:31 am
Nice job, Alan.
One question: what's the CHECKSUM() for? It doesn't appear to change the result from ROW_NUMBER().
June 30, 2015 at 7:22 am
IdRatherCodeIt (6/29/2015)
June 30, 2015 at 6:54 am
Paul White (6/28/2015)
June 30, 2015 at 6:53 am
Paul White (6/28/2015)
June 30, 2015 at 6:48 am
Jeff Moden (6/27/2015)
I'm still working on it. Everything I come up with has had a hole in it.
Sorry it's been a while Jeff, crazy busy times. Next gig booked...
June 30, 2015 at 6:43 am
Ed Pollack (6/26/2015)
...If their documentation is wrong...
It isn't wrong at all - it's just incomplete.
June 26, 2015 at 9:54 am
Jeff Moden (6/26/2015)
Ed Pollack (6/26/2015)
https://msdn.microsoft.com/en-us/library/ms184361.aspx
If their documentation is wrong, then I'd definitely like to see some sort of proof of that...
June 26, 2015 at 9:53 am
Jeff Moden (6/26/2015)
ChrisM@Work (6/26/2015)
Ed Pollack (6/26/2015)
June 26, 2015 at 8:50 am
Ed Pollack (6/26/2015)
June 26, 2015 at 6:57 am
-- Have you tried a computed column?
DROP TABLE #NameAndAddress
CREATE TABLE #NameAndAddress (
NameAndAddressID INT NOT NULL identity(1,1),
Firstname VARCHAR(20),
Lastname VARCHAR(20),
Address1 VARCHAR(50),
Address2 VARCHAR(50),
Address3 VARCHAR(50),
Address4 VARCHAR(50),
RowIsComplete AS CASE
WHEN Firstname IS NULL...
June 25, 2015 at 9:33 am
Viewing 15 posts - 2,371 through 2,385 (of 10,144 total)