Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting default for almost all columns in a table?
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01548548
Message ID:
01548632
Vues:
36
>>EXEC sys.sp_bindefault @defname=N'[dbo].[empty_bit]', @objname=N'[dbo].[b_bases].[hidden]' , @futureonly='futureonly'
>>
>>(I had to first adjust the Scripting options to include the bound defaults (by default they are not included).
>>
>>The syntax above is deprecated and MS recommends to change it to the normal ALTER TABLE defined constraints.
>>Just look at sp_binddefault stored procedure in BOL.
>
>Thank you for the explanation. I have a table where one of the columns default is to dbo.UW_ZeroDefault. Is this what you are talking about? I don't know even remember setting this default value (UW_ZeroDefault). Is this one is deprecated, does it mean I have to change it to 0 or 1?

Yes.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform