Viewing 15 posts - 14,911 through 14,925 (of 59,101 total)
Based on the fact that someone used the YEAR() function in one of the renditions of the code, can we safely assume that the t.tabdate column is a DATETIME column? ...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 12, 2017 at 12:24 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
June 12, 2017 at 8:02 am
If it were an NCHAR, you would need to be seriously concerned no matter what. I ran into this problem before with some system tables (can't remember which ones just...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2017 at 8:23 pm
Here's the link for the current definition of PARSENAME.
https://docs.microsoft.com/en-us/sql/t-sql/functions/parsename-transact-sql
But Books Online and the link above is incorrect. PARSENAME actually returns an NVARCHAR(128), which is the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2017 at 6:23 pm
Both the Democrats and the Republicans found out both how wrong a survey can be and how it can actually sway what's going to happen if it's published in real...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2017 at 5:57 pm
This will give you the same output as that which you posted...
DECLARE @OtherLimit INT = 6
;
WITH ctePreAgg AS
(
SELECT product_name =...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2017 at 5:54 pm
Yes... might as well get it from the master herself. Do the following search. Any of the videos with "(MCM)" as a part of the link title are totally awesome. --Jeff Moden Change is inevitable... Change for the better is not.
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
June 10, 2017 at 12:22 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2017 at 5:13 am
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2017 at 5:46 pm
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2017 at 2:54 pm
Also be seriously aware that the return datatype for PARSENAME is NCHAR. It you're saving the output in a table somewhere, it will save trailing spaces even if the target...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2017 at 1:12 pm
I try to test as if it's real life. Yes, I clear cache at the start of a test because it's important to know what will happen and how long...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2017 at 8:22 am
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2017 at 8:09 am
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2017 at 8:02 am
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2017 at 8:00 am
Viewing 15 posts - 14,911 through 14,925 (of 59,101 total)