msdn 참고 : http://technet.microsoft.com/ko-kr/library/ms174415.aspx
DECLARE @HashThis nvarchar(4000), @HashKey varbinary(1000); SELECT @HashThis = CONVERT(nvarchar(4000),'dslfdkjLK85kldsdfasdfasdfdsfasdfasdfhnv$n000#knf'); SELECT @HashKey = HASHBYTES('SHA2_256', @HashThis); SELECT @HashKey, DATALENGTH(@HashKey); -- return size 256 bit, 32 byte
'SQL Server 2012' 카테고리의 다른 글
[펌] Why ROWLOCK Hints Can Make Queries Slower and Blocking Worse in SQL Server (0) | 2016.11.04 |
---|---|
sys.dm_exec_describe_first_result_set (0) | 2014.01.20 |
왜 병렬로 안 풀리니? (0) | 2013.09.02 |
SQL2012 Server 리붓 후 identity 갭 현상 (0) | 2013.08.23 |
스케쥴링 할당 방법 SQL2012 EE 버젼 변경 (0) | 2013.08.14 |