Troubleshooting problems with user-defined functions in SQL Server 2008 R2 If you have problems with user-defined functions (UDF) in SQL Server 2008 R2, review this troubleshooting checklist to find potential solutions. 1. Install the latest SQL Server 2008 R2 service pack. Because many SQL Server 2008 R2 UDF bugs were fixed in SQL Server service packs, you should install the…