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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of triggers in sql server?

517


mention different types of relationships in the dbms?

501


What is the use of group by clause?

520


How does recursive cte works in sql server?

518


Explain having clause?

526






Explain system rowset functions?

554


What is the contrast between sql and pl/sql?

620


What does asynchronous call backs means?

617


What is sqlservr.exe - process - sql server (sqlex?press)?

594


How to insert data into an existing table?

563


What is the significance of master, tempdb and model databases?

523


Can we write ddl in trigger?

492


how to create “alternate row colour”?

109


Can a rule be bound to any column of any data type?

561


How to read data in a table with "select" statements?

549