|
-
May 30th, 2002, 10:39 AM
#1
Thread Starter
Black Cat
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.
-
May 30th, 2002, 10:59 AM
#2
Fanatic Member
Whatever you specify as the UDT, it doesn't seem to make any difference when creating the table (just the default).
-
May 30th, 2002, 01:01 PM
#3
Thread Starter
Black Cat
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|