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

Difference Between varchar and nvarchar datatype?

3 Answers   Satyam,


What is the STUFF function and how does it differ from the REPLACE function?

2 Answers  


How can u convert the Date to String?

6 Answers   TCS, Microsoft,


What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?

3 Answers   HCL,


Alternative way to DetDate() function?

5 Answers  






What is a cursor in SQL Server 2000 and their types?

8 Answers  


Why we need to use secondry database file? though, we can do same work using primary database file also.

2 Answers   Microsoft,


explain different types of jions with examples briefly?

2 Answers   Accenture, Zensar, Excellence,


What is SQL server agent?

2 Answers   HCL, SAP Labs,


What is sorting and what is the difference between sorting and clustered indexes?

1 Answers  


How to find the last update record in SQL Server?

4 Answers  


what is mean by constraints in sql?

5 Answers   IBM, Granada,






Categories