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)
 sp that will return yes/no for bit column

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-11-16 : 06:57:05
venkatachalam writes "im having a simple stored procedure that select true/false for a bit field

I need a storedprocedure that gives yes/no instead of true/false"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-16 : 07:00:23
Select case when bitcol=1 then 'yes' else 'no' end from yourTable

Madhivanan

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

- Advertisement -