1
DECLARE @EmailEnc varbinary(maX)
declare @keyid uniqueidentifier
DECLARE @Email_test nvarchar(max)
set @Email_test = N'[email protected]'
SELECT top 1 @keyid=[key_guid] FROM sys.symmetric_keys order by newid()
SET @EmailEnc=CAST(ENCRYPTBYKEY(@keyid,@Email_test) AS varbinary(max))
select @Email_test,@keyid,@EmailEnc
結果SQL Server 2005のENCRYPTBYKEYはヌル
Sgと@ hotmailのD790AE00-63FC-4BC5-8182-073BACDF1B12 NULL(影響を受けた1行(複数可)) を返します?何か案は??