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 2008 Forums
 Transact-SQL (2008)
 How to create a Boolean Data type column in SQL

Author  Topic 

scvinod
Starting Member

16 Posts

Posted - 2009-08-03 : 08:05:31
Can anyone please tell me how to create a Boolean type column and what kin of datas should it store.....Thanks in advance.

scv

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-08-03 : 08:20:27
Easiest and best option is to use a bit datatype.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2009-08-05 : 12:51:03
which would store 0,1 or null

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-08-05 : 13:38:05
Why on earth do you start a new topic with exact same question as here?
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=130531



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -