Re: Bit Datatype - Solved
- From: "Miro" <mironagy@xxxxxxxxxx>
- Date: Thu, 5 Jul 2007 10:25:00 -0400
Its SQL Express 2005
Ok - at least now I know I wasnt going crazy and "True" - "False" does work.
I deleted the table - re-created it without any joins and it worked.
I suspect I know what I did. - all user error and i should have rtfs when i
did a relationship.
I have another table called Login with a key LoginID - no nulls
here is a notes table so the keys are
NoteID - no nulls
LoginID - allow nulls here
I am suspecting the error was not actually an error on the boolean/bit field
but an error wth a wrong relationship.
It looks like the error is with the Bit field - but the bit field is my last
field in my whole table.
The only way I can re-create the error is doing a stupid relationship to
LoginID with NotID instead of Note-LoginID.
When you get to the last field ( in this case the bool field ) it errors
out -but not because of the field - because it cant join up the tables.
Thanks for your help.
-Super hard googling for key words like "bit" / "boolean" / "yes" / "no"
"VB.net" "datatype"
And back to learning...
Miro
"Mark S. Milley, MCSD (BinarySwitch)" <mark.milley@xxxxxxxxxxxxxxxx> wrote
in message news:1183640790.072008.259770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Miro -
True and False as values work on my end. Really, the values are stored
as -1 and 0 respectively.
Try putting in some data into all the other columns first (at least,
any that can't be null and don't have a default value). Then refresh
the table, and see how your interface is reporting the False value
that should be inserted on the DB side. After that, you should be able
to determine what to use for True (whatever the syntactic antonym is).
By the way, what are you using for a database? MS SQL Server 2005?
Cheers,
-Mark
.
- Follow-Ups:
- Re: Bit Datatype - Solved
- From: Cor Ligthert [MVP]
- Re: Bit Datatype - Solved
- References:
- Bit Datatype
- From: Miro
- Re: Bit Datatype
- From: Mark S. Milley, MCSD (BinarySwitch)
- Bit Datatype
- Prev by Date: Re: Bit Datatype
- Next by Date: Re: Problem with reading delimited textfile '|' with OleDBDataAdap
- Previous by thread: Re: Bit Datatype
- Next by thread: Re: Bit Datatype - Solved
- Index(es):
Relevant Pages
|