Welcome, Guest Ohm namah shivoy
www.faqpanel.com
Home | ASP.Net | C-Sharp | Winforms | MS SQL | AJAX | XML | .Net Training*** | Search
Invite friends 
Extras 
VS Tips & Tricks
Top 10 .Net Tools
Special folders in ASP.Net
VS Find Combobox
 ASP.Net Interview Questions and Answers
What is difference between function and stored procedure in sql server?
Stored Procedures may return multiple values, while functions returns only one value at a time.

Stored Procedures can have input, output parameters for it whereas functions can have only input parameters.

Stored Procedure allows select as well as DML statement in it whereas function allows only select statement in it.

Functions can be called from Stored Procedure whereas Stored Procedures cannot be called from function.

Exception can be handled by try-catch block in a Stored Procedure whereas try-catch block cannot be used in a function.

Stored Procedures can not be utilized in a select statement whereas function can be embedded in a select statement.

Stored Procedures are called independently, using the EXEC command, while functions are called from within another SQL statement.

State true or false. EXISTS, SOME, ANY are operators in SQL ?
What is the UNIQUE KEY constraint in SQL Server?
What are the steps you will take to improve performance of a poor performing query in SQL Server?
What is the FOREIGN KEY in SQL Server?
What are the benefits of using Stored Procedures in SQL Server?
OR
Why should we use Stored Procedures?
What command is used to create a table by copying the structure of another table in SQL Server?
Which function is used to find the smallest integer greater than or equal to a specific value in sql server?
How do I create primary keys in SQL Server?
What is the CHECK constraint in SQL Server?
What is the use of DESC in SQL Server Query?