|
-
May 2nd, 2001, 09:23 AM
#1
Thread Starter
Fanatic Member
Boolean using SQL
I have a .MDB database. Some fields are true/false and could be NULL. When i exported it to SQL fields are bit and NOT NULL ALLOW. Of course my APP doesnot work 'cos fields could not be NULL. WHY?
1. How do i can say these fields MUST ALLOW NULL?
2. Why i can not test TRUE or FALSE in VB as i do with ACCESS? I must use -1 or 1 or 0
-
May 2nd, 2001, 01:21 PM
#2
Addicted Member
In Access, the Required property for the field must be 'No'. In SQLServer, the 'Allow Null' property must be 'Yes' (or checked)
-
May 2nd, 2001, 01:27 PM
#3
Member
You can use a SQL sentece for convert False/True values to 0/1/-1....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|