Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User defined type and default
Message
De
25/06/2010 15:50:48
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01470595
Message ID:
01470612
Vues:
36
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'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform