Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-05-03 : 13:07:25
|
| Sam writes "Are User Defined Functions compiled for better performance under the covers of the SQL engine?" |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-05-03 : 13:19:14
|
| http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=34681Tara |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-05-03 : 21:40:51
|
| UDF's are compiled in a similar way to SPs but they can cause row by row operations in queries so can make them very inefficient.The optimiser expects them to be deterministic and generates the query plan assuming that so any time you create a udf that isn't deterministic it can cause a query to return incorrect results.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|