GeekInterview.com
Series: Subject: Topic:
Question: 12 of 279

Stored Procedure Vs Function

What is the impact of using a stored proc or a function on the performance? Which has a better performance? Also, why is it not possible to use DML in the functions called from a select query?
Asked by: priyanka_sharma | Member Since Sep-2012 | Asked on: Sep 20th, 2012

View all questions by priyanka_sharma

Showing Answers 1 - 2 of 2 Answers
Miguel

Answered On : Nov 2nd, 2012

A function is a store procedure indeed, and you can use autonomous transactions to do some DML

  
Login to rate this answer.
kritika kulshrestha

Answered On : Feb 19th, 2013

Implicit cursor is created automatically,opened automatically and closed automatically.it holds exactly one record. in case none or more than 1 record are retrieved, an exception is raised and that result into error or abnormal termination of program. whereas explicit cursor is created,opened and closed explicitly.it is created to hold 1 or more records.FETCH statement is used to retrieve the record.in order to check whether the fetch statement has retrieve the record, attribute %NotFound is used.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.