What is the difference between View and Stored Procedure? Can views accept input parameters as stored procedure? If yes,how could I do that? I am new to database and working on MS SQL,if someone could suggest me good reference websites then that would be great.
there is only one difference between views and stored procedure. 1. we can put query on View but we cannot put query on Stored Procedure.
Stored procedure is used for perfrom action but view is used for data hiding. view is used to make complex query easier but stored procedure is used to provide modularity and easier maintenance. text of view can be seen throw user_view views but source code of stored procedure can be seen through user_source.