Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the advantages of using views. Why do we need
views when we have SPs?

Answers were Sorted based on User's Feedback



What are the advantages of using views. Why do we need views when we have SPs?..

Answer / saurabh

View are the image of table.
advantages:- 1> they hide the details of table from which
they get data.
2> they are working as table and, provide security from
unautherized acccess.
3> they are read only.
4> they update automatically when some changes occurs in
original table

Is This Answer Correct ?    23 Yes 3 No

What are the advantages of using views. Why do we need views when we have SPs?..

Answer / reddy

1) we can use views in sp instead of joins to increase the
performance of SP.

Is This Answer Correct ?    7 Yes 1 No

What are the advantages of using views. Why do we need views when we have SPs?..

Answer / dr.job418

A view provides several benefits.

1. Views can hide complexity

If you have a query that requires joining several tables, or has complex logic or calculations, you can code all that logic into a view, then select from the view just like you would a table.

2. Views can be used as a security mechanism

A view can select certain columns and/or rows from a table, and permissions set on the view instead of the underlying tables. This allows surfacing only the data that a user needs to see.

3. Views can simplify supporting legacy code

If you need to refactor a table that would break a lot of code, you can replace the table with a view of the same name. The view provides the exact same schema as the original table, while the actual schema has changed. This keeps the legacy code that references the table from breaking, allowing you to change the legacy code at your leisure.

These are just some of the many examples of how views can be useful.

Is This Answer Correct ?    2 Yes 0 No

What are the advantages of using views. Why do we need views when we have SPs?..

Answer / jk.garg25

Views can be update, delete or insert

Is This Answer Correct ?    8 Yes 11 No

Post New Answer

More SQL Server Interview Questions

What are sql server procedures?

0 Answers  


What are binary string data types in ms sql server?

0 Answers  


How will you go about resolving deadlocks?

0 Answers  


Tell me what is the significance of null value and why should we avoid permitting null values?

0 Answers  


What is the xml datatype?

0 Answers  


What is an execution plan? How would you view the execution plan?

0 Answers  


How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?

3 Answers   HCL,


How to count the number of duplicate items in a table?

3 Answers  


Tell me what is the order in which the sql query is executed?

0 Answers  


List the different normalization forms?

0 Answers  


How to use linked server?

0 Answers  


Difference between Triggers and Stored Procedure

23 Answers   Claimat, HCL, Protech, Silgate,


Categories