Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting default for almost all columns in a table?
Message
From
14/07/2012 19:15:40
 
 
To
14/07/2012 13:30:23
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01548548
Message ID:
01548598
Views:
45
>>>I use a lot of SPs and so do a lot of other people that hit the data I find I need to have the backend handle a lot - especially defaults
>
>Yes, if several people share SP's then the defaults make sense.
>
>My first .NET apps used SP's almost exclusively as I did with VFP but I've moved toward doing more in the middle tier because I have to be there anyway and the datasets are so slick to work with.

I don' think it is so much the sharing of the SPs as the sharing of the tables. We don't use SPs as much for CRUD from apps as for serious data munging - creating real time updates to hundreds of tables with no UI but all run by back end batch jobs. Some of these run five or six times a day with no human intervention.

Since nulls are virtually never allowed, without default values, there is always the danger that adding a column or doing s omething else to a table will result in a whole lot of other code that enumerates columns will attempt to stick a null in on an update. It also means requiring every SP that touches the tables accounts for providing blank values.

Denis Gobo, our DBA, has made a believer of me on a lot of this stuff. I had just never even seen an environment like this before. I have become pretty excited about what one can do with set-based processing and I am sure the next time I design the UI and middle tier of a .NET app I'm going to look at it with different eyes.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Reply
Map
View

Click here to load this message in the networking platform