Results 1 to 3 of 3

Thread: MSSQL2000: UDT and Nullability

  1. #1

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032

    MSSQL2000: UDT and Nullability

    When you create a UDT with the sp_addtype sproc, you can control the Nullability. Later, when you create a table using that UDT as a column's data type, you can also set the nullability. How do these two nullabilies relate to each other? (IE - can I make all my UDT's 'NOT NULL', and then later make a column usings this type allow nulls on table creation?)

    Thanks.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  2. #2
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748
    Whatever you specify as the UDT, it doesn't seem to make any difference when creating the table (just the default).

  3. #3

    Thread Starter
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Okay, as I like to script everything explicitly as "NOT NULL" except when it needs to be "NULL". Thanks. I'm debating whether to use UDTs at all anyway.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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