what are the advantages of using a view over temporary tables. I know that you should use a view if the data is re-used by other stored procedures but:
-
Performance-wise is it better to use a view than a temporary table?
-
If the tables that the views are based on being constantly updated is a view still better than a temporary table?
-
If I had to use a where clause against a view, am I better off using a temporary table?
-
Finally, what are the advantages/disadvantages of using a view or temporary tables?
To discern, ask yourself if you need to reuse the information:
Also note how temp tables are destroyed: