declare @CertName varchar(1000)
set @CertName = cast('DavidCert' as varchar) + cast(suser_sname() as varchar)
Create certificate @CertName
with subject = 'David Test Cert'
GO
Create Symmetric Key SignedColumn
With Algorithm = DES
Encryption by certificate @CertName
|