The EXECUTE Permission Was Denied On The Object - SQL Server Function
Good day!
Cheers!
I just recently restored a new database from the server and ran a script to create a T-SQL function. But when I called that function in C#.NET, it won't allow me to but instead returns a "The EXECUTE Permission Was Denied On The Object" error. To fix this issue, expand the database as to where the function was setup. Then click on the Security node -> Schemas -> dbo. When the Schema dialog opens, add the user name and set it's check the Grant checkbox of the Execute permission.
After that, I can now successfully call the function from my .NET application.
Cheers!
Comments
Post a Comment