You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
SQL User-Defined FunctionsRestrictions on SQL UDFs• Some SQL statements are disallowed in UDFs, to avoid sideeffects:• DML, DDL• select or fetch statements returning data to the client• only allowed: select @var= or fetch…into @var• transaction control (begin tran, commit, etc)• output parameters not allowed• print, raiserror• getdate(), rand(), newid()• exec not allowed (both for stored procs and exec-immediate)• only extended stored procs (xp_*) may be executed• but not if they return a result set, like xp_cmdshell• dbcc<strong>Sybase</strong> Symposium 2007 – November 15 - Brussels25