I have Encrypted one column mob_no in a table. after encrypted the column, stored procedure is getting error.
I have added the sp below
create procedure get_cut
@mobNo varchar(50),
@custId int
As
Begin
if(@mobNo = null or @mobNo = '')
Begin
select @mobNo = mob_no
from table1 where cust_id = @custId
End
select cust_name from tbl_cust where mob_no = @mobNo and cust_id = @custId
End
When run this sp I got the bellow error
Msg 33299, Encryption scheme mismatch for columns/variables '@mobNo'. The encryption scheme for the columns/variables is (encryption_type = 'PLAINTEXT') and the expression near line '9' expects it to be (encryption_type = 'DETERMINISTIC', encryption_algorithm_name = 'AEAD_AES_256_CBC_HMAC_SHA_256', column_encryption_key_name = 'xxxx', column_encryption_key_database_name = 'mydb') (or weaker).