Solved

Boolean Field

Posted on 2000-02-22
3
1,475 Views
Last Modified: 2008-03-17
How can I set the value of a boolean field in an sql query?
0
Comment
Question by:Aikema
3 Comments
 
LVL 1

Author Comment

by:Aikema
ID: 2549240
ie. in my query am i supposed to feed it a 0 or 1 or should i use true or false instead.
0
 
LVL 7

Accepted Solution

by:
spiridonov earned 20 total points
ID: 2549308
You should use 0/1. Note, that this field can't be null.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2610013
Note that a variable of type bit can be NULL
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now