ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
Difference between Function and Stored Procedure?
 Question Submitted By :: Latha Sree
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Difference between Function and Stored Procedure?
Answer
# 1
1.  Function must returned a value,but stored procedure is 
not necessorly returned value

2. A function can be used to calculations,but sp used to 
solve a business logic

 
Is This Answer Correct ?    11 Yes 1 No
SreyasMN
[Astro Vision Future Tech Pvt Ltd]
 
  Re: Difference between Function and Stored Procedure?
Answer
# 2
stored procedure when executed generates execution plan 
once and next time when it is executed again it will use 
the generated execution plan,it does not generate it again.

Function compiles from the beginning and prepares the trace 
or execution each time it is called.
 
Is This Answer Correct ?    7 Yes 2 No
Madhu
 
 
 
  Re: Difference between Function and Stored Procedure?
Answer
# 3
stored procedure is precompiled one but Function not( want
to compile each time)
 
Is This Answer Correct ?    7 Yes 1 No
Sumesh.tc
[Softmake]
 
  Re: Difference between Function and Stored Procedure?
Answer
# 4
1-Function can not return the value but store procedure 
return value
2-Store procedure is pree-compile statement but function is 
not pree-compile satement.
3 function fallowed by select statement but store procedure 
fallowed select, insert,update statement.
 
Is This Answer Correct ?    0 Yes 9 No
Arvind Kumar
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
SQL stops working in every 15 days displaying message that database log file is full. Log file size is 3.95 GB. It is happening after shrinking the database also. What is solution to overcome this problem. Please help me as it's urgent.  5
hi, how to match retrieve the unmatched records from 2 tables in which we dont have any primary key. example : table1 has 1,2,3,4,5 and table2 has 1,2,3,4,5,6,7,8,9,10 and i want the numbers from 6 to 10 to be displayed and should not come as null. i need the numbers. please reply as soon as possible.  2
how to delete duplicate rows from table CSC9
What are the OS services that the SQL Server installation adds?  1
what is meant by sql injection with example and one more question how to catch the errors in sqlserver  1
SYNTAX FOR VIEWS WITH EXAMPLE HOW TO LINK TWO TABLES Microsoft1
Questions regarding Raiseerror?  1
what is syntex second or third highest salary. thanks & Regards Dhirendra sinha  4
What is the system function to get the current user's user id? TCS3
What do you mean by COLLATION?  4
Can Having clause be used without Group by clause? CTS4
Plz tell about backup&recovery?  2
Difference between Function and Stored Procedure? C1-India4
What is normalization?  6
What is a Join in SQL Server?  2
Questions on identity? Infosys1
What is the difference between Drop and Truncate  10
Different Types of Functions ? Satyam2
what is advantages in sql 2005 over sql 2000?  4
How to display n-1 columns from n number of columns, from a single table in MS SQL server 2005?  1
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com