Solved

Boolean Field

Posted on 2000-02-22
3
1,477 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

809 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