What is the difference between views and stored procedures?
Can we have input parameters for views?

Answer Posted / chandana sriram

Well both of them aren't even compatible to compare and
tell the difference. They both belong to different paradigm
of database world. Anyways, here are the definitions I
would give you. A stored procedure is a set of sql
statements which can be called a subroutine to access
relational database systems. Its actually stored in a
daatabase. They are mainly used for faster access(Pre-
compilation of SQL statements) ,Simplification of data
management and for security.

A view as my friends have elucidated above is a virtual or
logical table that holds result set of a pre-defined query.
The data for these views are not stored in the database.
There are two types of view read only and updatable. You
can modify a read only view with an INSTEAD OF trigger.

Hope that makes sense :-)

Is This Answer Correct ?    20 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you list all the table constraints in a database?

697


What is partition index in sql server?

798


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

731


explain what is raid and what are different types of raid configurations? : Sql server database administration

729


How to create a user name in a database?

771






What are SSL and TSL protocols?

747


What is sql stored procedure?

787


What are Spatial data types in SQL Server 2008

723


when would you go for denormalization? : Sql server database administration

638


What is the index requirement in SQL Azure?

86


What is the difference between commit and rollback?

673


Explain an incremental backup?

752


What is GUID in sql server?

822


How do you Implement SSIS Packages in your Project?

1673


List the ways in which dynamic sql can be executed?

792