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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does Binary = Boolean? 1

Status
Not open for further replies.

Rougy

Programmer
Oct 15, 2001
249
US
Hi,

Visual Basic 6 has a boolean variable. I'm using VB to transfer some data via DDE from one machine to the SQL database, and I was wondering if binary was the same as boolean, i.e. true or false, off or on, 1 or 0.

Kind of a stupid question, but my help files for SQL aren't responding.

Thanks

-----
The death of dogma is the birth of reason.
 
nope, binary stores binary data (more than one bit, up to 2 GB i believe). What you're looking for is the sql data type "bit"

Cheyney
 
Thanks Cheyney,

Is that a 1 or 0 value for the bit?

-----
The death of dogma is the birth of reason.
 
yup,
0 is false, <>0 (e.g. 1) is true

you can't use the words true and false.

Cheyney



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top