Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

boolean type

Status
Not open for further replies.

y3by

Programmer
Jan 15, 2002
92
0
0
PT
hy ppl

i have a table in access and one of the field is a boolean, i want to creat a identical table in sqlserv7 and i want to define that field as boolean, but i don't find that data type ...
how can i define a boolean in sql serv7!!??!?

thanks
 

You can use the BIT data type. Some people prefer using TINYINT or INT for boolean columns because they are easier to work with in SQL Server. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
The equivalent in SQL Server is the data type 'bit' which can hold values of 0,1 or NUll.

Rick.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top