Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I create a user defined function for encryption. It returns Nvarchar and accept one parameter ,i want to use this function in insert stored procedure. Can any bidy help me?
Posted
Updated 26-Aug-10 2:10am
v2

1 solution

INSERT INTO table (fiedl1, field2) VALUES(MY_SUPER_FUNCTION(value1), MY_SUPER_FUNCTION(value2))


Something like that?

Or you can also use triggers. But their usage depends on DBMS you're using.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900