Monday, February 19, 2024

SQL Server Differences between View and Table

Differences between View and Table

  • Storage: Table data is physically stored while view is a virtual table that points to table instead of storing any physical data.
  • Dependence: View is dependent upon table but not vice versa. When data in table is inserted, updated or deleted then view is affected but a table created out of a table is not affected because tables are independent database objects.
  • Security: View is created as interface to provide only that data to user that we want to display as per the permissions of the user.
  • Importance: Table is crucial entity in database but view is less important than table. Multiple views can be created from a table. Deleting table may severely impact the business but deleting view is not that much important.

No comments:

Post a Comment

Hot Topics