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 can we check the sql server version?

749


When does a workload on SQL Azure get throttled?

127


How to list all objects in a given schema?

749


How to provide login information for a new odbc dsn?

702


What is the contrast between sql and pl/sql?

801


What is sql service broker?

746


How you can add messages to the nt event log from within a stored procedure?

787


How do you open a cluster administrator?

794


What is onf in normalization form?

788


What is merge statement?

821


What are the different types of replication are there in sql server 2000?

773


Explain different types of locks in sql server.

782


Explain view in sql server?

829


What is the command dbcc checkdb used for?

720


What do you understand by physical_only option in dbcc checkdb?

759