How will u test the stroded procedures and functions?
difference between SP and Triggers

Answers were Sorted based on User's Feedback



How will u test the stroded procedures and functions? difference between SP and Triggers..

Answer / anand vanam

What is the difference between Functions and Stored
Procedures?
Answer:
1. Stored procedure supports deferred name resolution: but
Function won’t support deferred name resolution.
2. Stored procedures return always an integer value by
default zero. Where as function Scalar (single value or
table or row set)
3. Stored procedures are precompiled execution plan but
functions are not.
4. The result of the user defined function can be used with
in a sql server statement. Where as the result of stored
procedures can’t be used in sql server statements.
5. Stored procedure allows all functionality provided by a
function but the reverse is not true.
6. Functions in sql server can be one of two different types
1.scalar, 2. Table
Stored procedures are 2 types. 1. Regular sp, 2. Temporary
sp

Is This Answer Correct ?    9 Yes 2 No

How will u test the stroded procedures and functions? difference between SP and Triggers..

Answer / surya

we can write store procedure without table also..but not
triggres..

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Explain different backup plans?

0 Answers  


Can we use custom code in ssrs?

0 Answers  


What are the differences between union, intersect, and minus operators?

0 Answers  


Which is the best place or learning center for MS SQL?????In Bangladesh?????

0 Answers   TCL, Wipro,


How to use clusters?

0 Answers   Amdocs,






What is dknf in normalization form?

0 Answers  


Explain the difference between cross join and full outer join?

0 Answers  


What is nested transaction?

0 Answers  


If a table does not have a unique index, can a cursor be opened on it?

0 Answers  


You have to store user responses of ‘yes’ and ‘no’ what kind of data type is best suited for this task?

0 Answers  


What is blocking?

0 Answers  


What are the pros and cons of creating extended stored procedures?

1 Answers  


Categories