|
Posted by Doug on 02/03/06 18:15
hmmmm. Great discussions.
I have slipped into the mindset of never using a view, and I am
reexamining that mindset.
Everywhere I could use a view, I use a stored procedure. It seems to
me a sproc can have more access control then a view.
If I have users that want access to normalized data, I create a table
on a scheduled basis with all the data they need. It seems like there
are frequent times users want "report" data, and often it seems like
they would just as soon have it not change under them. On rare occasion
they want up to the minute data, and again I use a sproc to gather it
for them.
Again, a mindset. Could someone help me with why you would prefer a
view over a stored procedure? I can almost see the indexed views for
the right application, but there has to be a lot of overhead to
maintain that indexed view for large tables.
Navigation:
[Reply to this message]
|