Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning default value to User Defined DataType
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Assigning default value to User Defined DataType
Environment versions
Application:
Desktop
Miscellaneous
Thread ID:
01418922
Message ID:
01418922
Views:
92
I am having trouble assigning a default value to a user defined data type in code.
I can create the default object using
CREATE DEFAULT DEFAULTZERO as 0
and I can create the datatype using
CREATE TYPE Logical FROM bit NOT NULL
but I can't seem to get the right binding syntax for assigning DefaultZero as the default object for Logical.
I can do it manually through SQL Studio
TIA
Trevor
Next
Reply
Map
View

Click here to load this message in the networking platform