Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting default for almost all columns in a table?
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01548548
Message ID:
01548632
Views:
35
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform