Solved

Boolean Field

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

Expert Comment

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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert VBA UDF to SQl SERVER UDF 4 50
Regarding Disk IO 3 49
Access #Deleted data 20 43
Sql server Error message 3 16
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

726 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