문제

I'm trying to implement an encrypted column as in this following MSDN example. I understand most of the code except for the very first line:

--If there is no master key, create one now. 
IF NOT EXISTS (SELECT * FROM sys.symmetric_keys WHERE symmetric_key_id = 101)

When I run that on the AdventureWorks database on my local machine, the key already exists, which is fine; I got the example to run fine and encrypt/decrypt properly on my machine. However in that code there is no mention of a symmetric_key_id of 101 any at any point.

Is 101 some kind of reserved ID for symmetric keys?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top