Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User defined type and default
Message
From
25/06/2010 15:50:48
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01470595
Message ID:
01470612
Views:
35
Worked great. Thanks.

>>I have been trying to add a user defined type (domain) and I can't seem to be able to add a default value and no, I don't want to use a bit type.
>>
>>create type LOGICALFLAG
>> from tinyint not null default 0
>>
>>Thanks.
>
>The only way I've been able to make it work so far is this
>
>
>create type LOGICALFLAG
>from tinyint not null --default =0
>--logicalFlag default = 0
>
>create default zero as 0
>execute sp_bindefault 'zero','LOGICALFLAG'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform