This documentation is archived and is not being maintained.

CLR User-Defined Functions (ADO.NET)

User-defined functions are routines that can take parameters, perform calculations or other actions, and return a result. Starting with Microsoft SQL Server 2005, you can write user-defined functions in any Microsoft .NET Framework programming language, such as Microsoft Visual Basic .NET or Microsoft Visual C#.

For more detailed information, see the version of SQL Server Books Online for the version of SQL Server you are using.