Clear documentation in regards to User-defined functions restrictions
-
21 aprilie 2011 21:20
I've been searching online for a clear list of restrictions in User-defined functions and the best I found so far is
http://technet.microsoft.com/en-us/library/ms191320.aspx
I found good blog by Pinal Dave, but I'm looking for official MS documentation.
Thanks in advance.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog- Mutat de KJian_ 30 aprilie 2011 01:53 (From:Transact-SQL)
Toate mesajele
-
23 aprilie 2011 13:28
Hi,
I find the following link provides specific guidelines, rules and restrictions.Please see:
User-Defined Function Design Guidelines
http://msdn.microsoft.com/en-us/library/ms187440.aspxThanks,
Ai-hua Qiu
Ai-hua Qiu[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
24 aprilie 2011 03:00
Hi Ai-hua,
Unless for me this link returns different info, I don't see a clear list of things which are not allowed in a function. I believe I checked that link above before.
I need something very similar to Pinal's blog
http://blog.sqlauthority.com/2007/05/29/sql-server-user-defined-functions-udf-limitations/
For every expert, there is an equal and opposite expert. - Becker's Law
My blog- Marcat ca răspuns de Kalman TothMicrosoft Community Contributor 29 aprilie 2011 04:43
- Anulare marcare ca răspuns de Naomi NMicrosoft Community Contributor 29 aprilie 2011 04:48
-
29 aprilie 2011 04:45
Most important thing to remember:
You cannot change the database in any shape or form within a UDF.
READ-ONLY access to the databases within a function.
Kalman Toth SQL SERVER 2012 & BI TRAINING
New Book: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2012- Editat de Kalman TothMicrosoft Community Contributor 26 septembrie 2012 17:43
-
29 aprilie 2011 04:50Yes, that I know. I just thought there should be an explicit list of things that are not allowed in a function. Say, Pinal's blog mentions that UDF can not return XML. Recently there was a thread on this topic and that's why I started to look for clear documentation. So far I found none in BOL.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog -
9 mai 2011 07:03Moderator
Hello Naomi,
What about this link ?
You are true : it is really difficult to find complete information about the restrictions about user-defined functions in MS documentation
Have a nice day
PS : i discovered this link ( a little old one ) :
http://decipherinfosys.wordpress.com/2008/07/16/udf-limitations-in-sql-server/
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.- Editat de Papy NormandModerator 9 mai 2011 07:09 added PS
-
9 mai 2011 11:58Thanks, Papy. The second link is good, but I don't think it lists everything. And also, it's not BOL documentation.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog