INSERT, UPDATE clause inside UDF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ganeshkumar08
    New Member
    • Jan 2008
    • 31

    INSERT, UPDATE clause inside UDF

    Hi SQL friends,

    My doubt is can we INSERT , UPDATE clauses inside function..
    if yes can u give an example function..

    Ganesh Kumar
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    I think, technically, you can. Here's the full syntax.

    What are you trying to do? SP's might be what you need and not a function. SP's can also return values through OUTPUT parameters.

    -- CK

    Comment

    Working...