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 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

I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration

1055


Benefits of Stored Procedures?

937


Explain what are various ways to enhance the ssrs report?

1011


What is nolock hint in sql server 2008

1096


What is the difference between varchar and nvarchar datatypes?

1054


What are secondary xml indexes?

995


What are the advantages of user defined function?

947


Why use view instead of a table?

901


What are various limitations of the views?

1012


Do you know the isolation level that sql server support?

939


How can I create a report based on a query? : sql server management studio

985


What is difference between drop truncate and delete?

1033


Write a code to select distinct records without using the DISTINCT keyword.

1070


Write a query to find 5th highest amount paid from the customer table.

901


Explain the difference between delete,drop and truncate in SQL Server?

1042