I want to use DATENAME
in a function, but the problem is datename's result is dependent on login or install language setup.
to make sure all the time it return english result I need to use set language 'English'
but if I use it inside a function I will get following error
Invalid use of a side-effecting operator 'SET COMMAND' within a function.
Can you try this?