Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Boolean value

Author  Topic 

sardinka
Posting Yak Master

142 Posts

Posted - 2006-03-06 : 15:53:53
I am trying to create a function with return value true or false.
Returns bool
as
if...
... return true
else
...retruen false
however for some reason it saying can't fine dara type bool? Why?

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2006-03-06 : 15:56:07
sql server uses BIT for that. (0 or 1)

Be One with the Optimizer
TG
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-07 : 01:30:17
Not that BIT supports to have NULL values also.

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -