加密已存在的存储过程时出错

时间:2015-05-13 06:48:37

标签: stored-procedures encryption

我正在尝试加密存储过程,如下所示,但它给出错误。请帮助我

alter procedure spo1
with encryption
@ID int,  
@NAME nvarchar(60)
as  
begin  
  insert into metal1 (id,name) values (@ID,@NAME)  
end

1 个答案:

答案 0 :(得分:0)

你写错了语法请检查以下代码..

  alter procedure spo1
     @ID int,
    @NAME nvarchar(60) 
     with encryption // Put With Encryption Here...
    as
    begin
    insert into metal1 (id,name) values (@ID,@NAME)
    end