What is View in SQL Server?
What is View?
Hi friends
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vithal WadjePosted Nov 7, 2012, 6:52 AM
view are created on table column...the syntax is below
Sandeep Singh ShekhawatPosted Nov 7, 2012, 6:45 AM
Rows updated or deleted in the view are updated or deleted in the table the VIEW was created with. It should also be noted that as Data in the original table changes, so does the data in the view - as view are the way to look at parts of the original table. The result of using view are not permanently stored in database. The data access through a view is actually constructed using a standred T-SQL SELECT command and can come from one to may different base tables or even other view.
Two main purpose of creating a view are
1. provide a scurity mechanism which restrict users to a creatain subset of data. means we ca create different schema on table and view and accroding to schema user can access view not a tbale if that user have not table schema if that user have only view schema
2. provide a mechnism for developers to cutomize how user can logically view data.
Create a View:
CREATE VIEW view_EMPLOYEE
AS
SELECT * FROM EMPLOYEE
Retrieve data from viewSELECT * FROM view_EMPLOYEE
Hope It will be helpful.
Satyapriya NayakPosted Nov 7, 2012, 6:28 AM
http://www.c-sharpcorner.com/UploadFile/6cde20/concept-of-view-in-sql-server/
http://www.quackit.com/sql_server/tutorial/sql_server_views.cfm
http://www.sql-server-performance.com/2004/views-in-sql-server/