Hi,
Wondering if anyone can provide input on using Views vs. Tables in SQL Server 2000. I have been tasked with a complete redesign of a bunch derived tables that are currently loaded with along with the main tablew with each import. There are, in some cases, millions of records. The derived tables range from being populated via criteria applied to main table with case statements to performing roll up calculations. For the most part, they are populated from one table, but there are a couple of cases where a join is required during the load script.
So, I'm wondering...
Can a view be refreshed based on the launch of the application that needs the data in the view? ..if so, is the performance relatively good when you're working with huge (wide) tables with millions of rows?
Does a view need to be refreshed each time one of the tables on which it is dependent is refreshed?
How are Views performance (this one is critical because they don't like to wait for their data)?
Can you shed some light on the indexed View?
Any input is greatly appreciated.
Mary
Wondering if anyone can provide input on using Views vs. Tables in SQL Server 2000. I have been tasked with a complete redesign of a bunch derived tables that are currently loaded with along with the main tablew with each import. There are, in some cases, millions of records. The derived tables range from being populated via criteria applied to main table with case statements to performing roll up calculations. For the most part, they are populated from one table, but there are a couple of cases where a join is required during the load script.
So, I'm wondering...
Can a view be refreshed based on the launch of the application that needs the data in the view? ..if so, is the performance relatively good when you're working with huge (wide) tables with millions of rows?
Does a view need to be refreshed each time one of the tables on which it is dependent is refreshed?
How are Views performance (this one is critical because they don't like to wait for their data)?
Can you shed some light on the indexed View?
Any input is greatly appreciated.
Mary