SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to create a Boolean Data type column in SQL
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

scvinod
Starting Member

India
16 Posts

Posted - 08/03/2009 :  08:05:31  Show Profile  Reply with Quote
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

USA
15557 Posts

Posted - 08/03/2009 :  08:20:27  Show Profile  Visit robvolk's Homepage  Reply with Quote
Easiest and best option is to use a bit datatype.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 08/05/2009 :  12:51:03  Show Profile  Reply with Quote
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

Sweden
29138 Posts

Posted - 08/05/2009 :  13:38:05  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000