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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 7, 2012, 1:28 AM EST
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/
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Nov 7, 2012, 1:45 AM EST
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.
Vithal WadjeRank #19 · 47.2K reputationPosted Nov 7, 2012, 1:52 AM EST
view are created on table column...the syntax is below
CREATE VIEW view_name AS SELECT columns FROM table WHERE predicates;