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?

Answers were Sorted based on User's Feedback



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

Answer / ashutosh jha

both can never be compares, as both have totally different
approached,

Well a view is a output of a query ,and makes a virtual
image of the table,and the input parameters are not accepted.

sp is a group of sql statements that are pre-executed and it
accepts the parameters.it reduces network traffic, gives
faster performance, etc.

Is This Answer Correct ?    42 Yes 2 No

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

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

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

Answer / grish varshney

views & stored procedure are basically different appraches.
both have their different purposes.
view is a virtual table. which have no data atall.which
difination stored in oracle system catalogue . whenever a
call is made every time the defination is scanned & a new
virtual table is made over the base table.
while stored procedure are the precompiled statements
which can accept arguments..

Is This Answer Correct ?    6 Yes 3 No

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

Answer / sandeep

At times, the database administrator might want to restric access of data to different users. They
might want some user to be able to access to all columns of a table wheras other users to be able to access only selected columns.The sql server allows you to create views to restric user access to the data.Views also help in simplifying query execute when the query involves retrieving data from maltiple tables by applying joins.

Is This Answer Correct ?    3 Yes 0 No

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

Answer / indhu karur

View:
V can define a select-query that retrieves
specific information from one or more tables

Sp:
A stored procedure can do much more: it can run
multiple sql-commands, has control-of-flow statements and
accepts
parameters

Is This Answer Correct ?    5 Yes 4 No

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

Answer / mukesh

All above answers are exactly correct.
In a different approach my answer is,
View is for Static approach. We cannot create a view with dynamic values.
SP is for Dynamic/Run-time values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

What is the cartesian product of table?

0 Answers  


how insert selected column only ?

3 Answers   Robert Half,


Explain what are partitioned views and distributed partitioned views?

0 Answers  


What is meant by indexing files?

0 Answers  


please can anyone answer this query Table 1 has 2 columns: EmployeeId,Age Table 2 has 2 columns: EmployeeId, Region Write SQL to Find the region who has the oldest person

10 Answers  


what is a transaction? : Sql server database administration

0 Answers  


create table with fields ID, reserved_by,res_date res_date is datefield like 2010-03-09 00:00:00.000 from 2005 to 2006 any date assume based on res_date need to slect table and display based on month (full jan details in database irrespective of date and year

3 Answers  


What is the difference between in and exists. Ex: select * from emp where empno in(....) and select * from emp where empno exists(....) What is the difference between a Join and Union and Union and UnionAll.

5 Answers   ABC, Accenture,


What are the difference between data length and length in SQL Server-2008?

3 Answers   Scio Healthcare,


What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio

0 Answers  


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

0 Answers  


What is the difference between cross join and Full outer join?

1 Answers   HP, Standard Bank,


Categories