Tips for using SQL Server 2012 User-Defined Functions If you want to invoke a stored procedure directly from a query and this stored procedure returns a scalar value, consider replacing a stored procedure with a scalar user-defined function. A stored procedure cannot be invoked from the SELECT statement, but if you need to invoke some code inside the query, try...
Tag: scalar
Troubleshooting problems with user-defined functions in SQL Server 2008 R2
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...