Hi again,
I need to create a function that returns a boolean value, to be used in a CASE expression.
I have tried with 'RETURNS BIT' but it is not considered as boolean an SQL fails in the case so I have to use:
SELECT CASE WHEN dbo.myFunction(parameter)=
1 THEN .....
I want to use as
SELECT CASE WHEN dbo.myFunction(parameter) THEN .....
Any ideas?
Any chance to use variant type?
Start Free Trial