Results 1 to 3 of 3

Thread: Inserting a bit field in SQL Server

  1. #1

    Thread Starter
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

    Inserting a bit field in SQL Server

    How do you insert a bit field into a SQL Server database. Shouldn't I be able to use a boolean variable passing it to the stored procedure, and it should convert it...right?

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    The bit field takes a 1 or 0 as the value, but returns a True or False.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Thanks, that was what I was thinking. I actually found out that the table I was inserting on had a trigger that disallowed the insert, so it probably wasn't anything I was doing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width