What is difference between stored procedure and function?
Answer Posted / a.suresh
1.Stored Procedure return 0 to nth value where as function
return only one value which is must.
2.we can't use the stored procedure in select select
statement where as function can be used in the select statement.
3.we can use all the dml(insert,update,delete) commands in
stored procedure where as select statement only used in
functions.
4.we can use try catch in stored procedure where as in
functions cant.
function must be used with its schema where as stored
procedure used with out schema name
ex.dbo.function name
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain about builtinadministrator?
What are the difference between “where” and “having” clause in sql server?
Explain aggregate functions?
What is transaction server consistency?
What does asynchronous call backs means?
Differentiate between a local and a global temporary table?
How to get a list of columns in a view using "sys.columns" in ms sql server?
What do you mean by a Composite primary key?
Can truncate be rolled back?
What is the sql profiler?
my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions
Explain indexes disadvantages?
What are distinctive joins find as a part of sql?
Explain the use of containers in ssis?
How you can get the list of largest tables in a database?