|
|
Question : SQL Function returning boolean value
|
|
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?
|
Answer : SQL Function returning boolean value
|
|
jaime_olivares, > "HOW TO RETURN A BOOLEAN VALUE INSTEAD A BIT" NO Way in SQL server
|
|
|
|
|