Home > Archive > microsoft.public.sqlserver.server > November 2002 > Changing Bit display from true to 1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Changing Bit display from true to 1
gary

2002-11-11, 9:23 am

I have written some code that is being displayed on the asp page as true or
false and it would help if I could display it as 1 or 0

Thanks inadvance
Gary


Ricky Artigas

2002-11-11, 10:24 am

SELECT CASE WHEN col_name = 1 then '1', when col_Name = 0 then '0' end as
col_description
FROM your_table.

;o)


"gary" <gary@extremecolor.com> wrote in message
news:uxmpcEZiCHA.2456@tkmsftngp12...
> I have written some code that is being displayed on the asp page as true

or
> false and it would help if I could display it as 1 or 0
>
> Thanks inadvance
> Gary
>
>



Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net