Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting default for almost all columns in a table?
Message
From
15/07/2012 19:06:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01548548
Message ID:
01548625
Views:
46
>>Which is why I have only two defaults (dflt_emptystring and dflt_zero) that I use for everything that's not nullable (including datetimes and bits). At least these take very little space and I guess very little processing power when doing mass inserts. When altering tables, I supply the literal defaults, then drop them (this time SQL doesn't complain, knock on wood :), and replace them with bound defaults. Ugly and detouring, but it works.
>
>The bound defaults are deprecated. Don't use them anymore in the production code.

Nice... I remembered it wrong, and didn't bother to re-check the BOL.

Well, I guess they have their reasons and, this being M$, I don't expect they'll ever bother to say why.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform