A proc I have uses a .NET function to decrypt data from the database. However, I’m getting this failure from the database.
A .NET Framework error occurred during execution of user-defined routine or aggregate “[Function name]”:
System.ArgumentNullException: Buffer cannot be null.
Any ideas why?
Thanks.
Found the issue, was passing in a null to the function, and that blew it up. Reversing the way it was called helped to, such as instead of this:
I changed it to: