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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
What is the difference between a stored procedure and a user
defined function in sql server?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between a stored procedure and a user defined function in sql server?
Answer
# 1
1.For user defined function one must have to specify it's 
return type while in stored procedure it is not mandatory.

2. u can use function in expression but not stored 
procedures
 
Is This Answer Correct ?    1 Yes 0 No
Samant
 
  Re: What is the difference between a stored procedure and a user defined function in sql server?
Answer
# 2
1. Stored Procedure to return the output parameter.
    but function only return single values no output 
parameter.

2. Select Clause we cann't use stored procdure. but 
fucntion we can use.

3. XMl Clause contain we can use stored procdure. but 
function we cann't use.

4. Whenever to execute function at present any error in the 
function automatically to exit from the function. but 
stored procudure to ignore the error then go to next line.

By
Kumar.T
 
Is This Answer Correct ?    2 Yes 0 No
Kumar.t
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
Differences between functions and stored procedures? 247Customer6
How do you find the number of rows in a table?  5
write down the code for "how we delete a table without using of Drop command " ? Sonata2
1.How to check the backup file details if we do not have access to that folder 2.how to check the backup file size without connecting to the folder IBM1
WHAT IS DIFFRENCE BETWEEN TRUNCATE AND DELETE STATEMENT CTS10
What are the steps you will take, if you are tasked with securing an SQL Server? HCL1
what is the difference between group and having give an example with query and sample output  2
what is the out put of below queries? a. select * from Emp where null = null; b. select * from Emp where 1=1; Patni9
What is cursor ? And what is difference between Trigger ? HCL1
What is a Trace frag?Where can we use this?  1
how to replace double quotes by single quotes in sql server CAC2
What is an execution plan? When would you use it? How would you view the execution plan?  1
What is the difference between two queries: 1. SELECT * FROM table WHERE 1=1; 2. SELECT * FROM table HP15
there is a table having two columns no and name and the data is 1 A 2 B 3 C write a query that will result a horizontal output A,B,C vsworx7
why cluster and non clusterindex are used in sqlserver 2000? explain with example  1
what is Constraint? How many types of constraints in SQL ? NIIT7
How can i change the column name. HCL7
What are the type of Indexes? which one is best, why?  5
what is the difference between sql query and google query? TCS6
When you first load SQL SERVER you will startup with what all databases? CompuSol3
 
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