--以下语句创建一个非对称密钥asymDemoKeyuse DB_Encrypt_DemogoCREATE ASYMMETRIC Crucial asymDemoKey --创建非对称密钥名称WITH ALGORITHM = RSA_512 --加密安全类型ENCRYPTION BY PASSWORD = 'TestASYM123,
microsoft office 2007 Professional!' --密码--查看当前数据库中的非对称密钥use DB_Encrypt_DemogoSELECT name,
microsoft office Standard 2007 key, algorithm_desc,
Microsoft Office 2007 Licencia De, pvt_key_encryption_type_descFROM sys.asymmetric_keys----结果返回/*name algorithm_desc pvt_key_encryption_type_descasymDemoKey RSA_512 ENCRYPTED_BY_PASSWORD*/