Listing 2: Creating the Definition of fn_IsInt CLR UDF using System; using System.Data.SqlTypes; public partial class UserDefinedFunctions { [Microsoft.SqlServer.Server.SqlFunction] public static SqlBoolean fn_IsInt(SqlString s) { if (s.IsNull) return SqlBoolean.False; else { Int32 i = 0; return Int32.TryParse(s.Value, out i); } } }; 1