-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Database views should be regularly tested to ensure that they are still functioning. Views are effectively a SELECT statement that queries data from database tables and other views. The underlying tables and join conditions that the view depends on can be modified in a way that breaks existing views if they have not been refactored in line with new db structure.
First, it is necessary to query the database catalog and loop through all database views that exist. For each view discovered, a simple "SELECT TOP 1 * FROM <database_view>;" will be sufficient to check that the view logic is still functioning. This technique should work even if there is no data loaded.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers