Click here to Skip to main content
16,009,469 members
Home / Discussions / Database
   

Database

 
Questionsql server Pin
yogika17-Jan-13 19:15
yogika17-Jan-13 19:15 
Is these differences are correct or not as interviewer said me these are incorrect....please guide me...

Difference between function and SP
SQL
Procedure can return zero or n values whereas function can return one value which is mandatory.
Procedures can have input/output parameters for it whereas functions can have only input parameters.
Procedure allows select as well as DML statement in it whereas function allows only select statement in it.
Functions can be called from procedure whereas procedures cannot be called from function.
Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.

AnswerRe: sql server Pin
Eddy Vluggen18-Jan-13 1:37
professionalEddy Vluggen18-Jan-13 1:37 
AnswerRe: sql server Pin
Richard Deeming18-Jan-13 1:37
mveRichard Deeming18-Jan-13 1:37 
GeneralRe: sql server Pin
Eddy Vluggen18-Jan-13 2:13
professionalEddy Vluggen18-Jan-13 2:13 
GeneralRe: sql server Pin
Richard Deeming18-Jan-13 2:18
mveRichard Deeming18-Jan-13 2:18 
GeneralRe: sql server Pin
Eddy Vluggen18-Jan-13 2:22
professionalEddy Vluggen18-Jan-13 2:22 
GeneralRe: sql server Pin
PIEBALDconsult18-Jan-13 14:36
mvePIEBALDconsult18-Jan-13 14:36 
AnswerRe: sql server Pin
PIEBALDconsult18-Jan-13 4:04
mvePIEBALDconsult18-Jan-13 4:04 
GeneralRe: sql server Pin
Shameel22-Jan-13 4:31
professionalShameel22-Jan-13 4:31 
QuestionDo I need a pivot Query? Pin
GREG_DORIANcod16-Jan-13 10:09
professionalGREG_DORIANcod16-Jan-13 10:09 
AnswerRe: Do I need a pivot Query? Pin
Mycroft Holmes16-Jan-13 19:36
professionalMycroft Holmes16-Jan-13 19:36 
GeneralRe: Do I need a pivot Query? Pin
GREG_DORIANcod17-Jan-13 1:59
professionalGREG_DORIANcod17-Jan-13 1:59 
AnswerRe: Do I need a pivot Query? Pin
Jörgen Andersson21-Jan-13 8:58
professionalJörgen Andersson21-Jan-13 8:58 
QuestionTotals of each transaction type Pin
Richard.Berry10015-Jan-13 21:38
Richard.Berry10015-Jan-13 21:38 
AnswerRe: Totals of each transaction type Pin
Mycroft Holmes15-Jan-13 22:57
professionalMycroft Holmes15-Jan-13 22:57 
GeneralRe: Totals of each transaction type Pin
Richard.Berry10016-Jan-13 0:36
Richard.Berry10016-Jan-13 0:36 
GeneralRe: Totals of each transaction type Pin
PIEBALDconsult16-Jan-13 3:42
mvePIEBALDconsult16-Jan-13 3:42 
GeneralRe: Totals of each transaction type Pin
Richard.Berry10016-Jan-13 5:36
Richard.Berry10016-Jan-13 5:36 
QuestionCustomize color coding in SQL editor window Pin
biop.codeproject15-Jan-13 20:04
biop.codeproject15-Jan-13 20:04 
AnswerRe: Customize color coding in SQL editor window Pin
Mycroft Holmes15-Jan-13 22:51
professionalMycroft Holmes15-Jan-13 22:51 
GeneralMessage Closed Pin
16-Jan-13 19:26
biop.codeproject16-Jan-13 19:26 
GeneralRe: Customize color coding in SQL editor window Pin
Mycroft Holmes16-Jan-13 19:34
professionalMycroft Holmes16-Jan-13 19:34 
GeneralRe: Customize color coding in SQL editor window Pin
Shameel22-Jan-13 4:41
professionalShameel22-Jan-13 4:41 
Questionquery.. Pin
vishal.v.patil14-Jan-13 17:49
vishal.v.patil14-Jan-13 17:49 
AnswerRe: query.. Pin
Mycroft Holmes14-Jan-13 17:54
professionalMycroft Holmes14-Jan-13 17:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.