Viewing 3 posts - 1 through 3 (of 3 total)
Well, this is dafuq of day... :w00t:
June 27, 2013 at 2:05 am
#1627832
About HASHBYTES (from http://msdn.microsoft.com/en-us/library/ms174415.aspx):
1. input size is limited to 8000
2. output size depends on used algorithm, for MD5 you can use CAST(HASHBYTES('MD5', (EmployeeName + CityName)) AS BINARY(16))
3. beware...
February 19, 2013 at 4:42 am
#1589128
I like "less magic" - you can update table alias:
UPDATE
P
SET
ProductName = N.ProductName,
Price = N.Price
FROM
dbo.Product P
INNER JOIN
dbo.New_Prices N ON P.ID...
October 10, 2012 at 12:34 am
#1547475