Viewing 13 posts - 1 through 13 (of 13 total)
There is a 8KB limit as input to the HASHBYTES function. Make sure your columns don't exceed that (not necessarily a character limit).
December 6, 2017 at 7:17 pm
WITH CTE
AS
(
SELECT t.x
FROM
( VALUES
(1),(1),(1),(1),(1),(1),(1),(1),(1),(1)
)t (x)
),
CTE2
AS
(
SELECT ROW_NUMBER() OVER(ORDER BY c.x) AS RowNum
FROM CTE c
CROSS JOIN CTE c2
CROSS JOIN CTE c3
CROSS JOIN CTE c4
CROSS JOIN CTE c5
),
CTE3
AS
(
SELECT CAST(c.RowNum AS NUMERIC(15,2)) AS...
December 5, 2013 at 9:14 pm
The answer to that questions depends on "the what". Some implementations are better when you have disparate data sources (flat files, spreadsheets, xml files, etc) as
DEK46656 suggests. One of...
December 21, 2011 at 6:25 pm
Great article. The idea behind using the hash to determine data change is a great. Determining which hashing algorithm to use and where to use it (ETL, update...
April 14, 2010 at 10:19 am
The reason I had the index sorting in the opposite direction was to demonstrate the structure of table. The query itself represents a requirement that was needed and the...
January 29, 2010 at 2:30 pm
First, please note the subtitle of the article, An Efficient Alternative to Subqueries. There were no claims about it being the best, just an alternative to subqueries. From...
January 29, 2010 at 2:23 pm
FreeHansje (6/2/2009)
June 3, 2009 at 9:42 am
FreeHansje (6/2/2009)
June 2, 2009 at 11:27 am
mbergstrom (5/29/2009)
SELECT Previous.Category,
Previous.Date,
Next.Date
FROM Dates.CategoryDate Previous
LEFT JOIN Dates.CategoryDate Next
ON Previous.Category = Next.Category
AND Previous.Date < Next.Date
LEFT JOIN Dates.CategoryDate Middle
ON Previous.Category = Middle.Category
AND...
May 29, 2009 at 9:47 am
Pritesh Keniya (5/21/2009)
Just out of curiosity I thought: "What if we use CTE?"
------------------------------------------------------------------------------------------------
With MaxVer as
(
SELECT...
May 21, 2009 at 8:11 am
wbrianwhite (5/12/2009)
William Hutton (5/12/2009)
May 12, 2009 at 9:13 pm
JJ B (5/12/2009)
Question: I hate to open a can of worms on a different topic, but I'm so curious as to why you specified the nolock...
May 12, 2009 at 12:19 pm
There are not any issues to my knowledge that require the NOLOCK hint for ROW_NUMBER(). I just used it for performance reasons.
May 12, 2009 at 12:16 pm
Viewing 13 posts - 1 through 13 (of 13 total)