GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Database  >  Stored Procedures
Go To First  |  Previous Question  |  
 Stored Procedures  |  Question 12 of 12    Print  
Difference between View and Stored Procedure
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.


  
Total Answers and Comments: 4 Last Update: July 16, 2008     Asked by: preetiv 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 19, 2008 02:44:47   #1  
naveenchowki Member Since: June 2008   Contribution: 2    

RE: Difference between View and Stored Procedure
view is nothing but an imagenary table .it contains data at run time only not created in the database where as stored procedure can be used to store business logic..it is created at database level.
 main differece is stored procedure exits in database where as view doesnot exits in database.

 
Is this answer useful? Yes | No
June 19, 2008 02:46:07   #2  
naveenchowki Member Since: June 2008   Contribution: 2    

RE: Difference between View and Stored Procedure
i think view doesn't accepts any parameters.

 
Is this answer useful? Yes | No
July 11, 2008 02:59:22   #3  
ashwin890 Member Since: July 2008   Contribution: 2    

RE: Difference between View and Stored Procedure
view is virtual table With view you can restirct the user to see what is required for him and stored procedure is pre compiled transact sql statments which is compiled once stored on the server
 
Is this answer useful? Yes | No
July 16, 2008 01:21:02   #4  
atdhdrolla Member Since: March 2007   Contribution: 19    

RE: Difference between View and Stored Procedure
View - A View in simple terms is a subset of a table. It can be used to retrieve data from the tables, Insert, Update or Delete from the tables. The Results of using View are not permanently  stored in the database.

Stored Procedure -  A stored procedure is a group of SQL statements which can be stored into the database and can be shared over the netwrok with different users.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape