Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2013

    Question Unanswered: Commit/rollback in a function

    I read in post that: A function does represent a transaction. You do not have to wrap a function in BEGIN/COMMIT

    I just wanted to know if this is the case or not?

    Many thanks, Dave.

  2. #2
    Join Date
    Nov 2003
    Provided Answers: 23
    You can not commit or rollback inside a function.

    The function is always executed in the transaction established by the caller.
    I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags:

    Tips for good questions:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts