Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Tips Database Forum Rss Feed

» Database Journal Home
» Database Articles
» Database Tutorials
MS Access
SQL Scripts & Samples
» Database Forum
» Slideshows
Free Newsletters:

News Via RSS Feed

Rss Feed

Database Journal |DBA Support |SQLCourse |SQLCourse2

Featured Database Articles

Database News

Posted Jan 28, 2009

Ordered Common Language Runtime Table-Valued User-Defined Functions

By DatabaseJournal.com Staff

[From SQL Server Magazine]

SQL Server 2008 enhances support for CLR table-valued user-defined functions by letting you define the order in which the rows are returned from the function. When you use the CREATE FUNCTION statement to register the CLR function in the database, you use an ORDER clause to specify the order. As an example, the CLR function fn_split whose definition is provided in Listing 1 always returns the rows ordered by the pos column. You can indicate this option when you register the function in the database. The following code registers two versions of the function, one without the ORDER clause and one with it:

The article continues at http://www.sqlmag.com/Articles/Index.cfm?ArticleID=100976&DisplayTab=Article

Database News Archives

Latest Forum Threads
Database News Forum
Topic By Replies Updated
Efficient SQL Server Indexing by Design lcole 0 April 30th, 12:38 PM
Mine Oracle Database, SQL Server and Other Databases with Monarch Data Pump Pro V10.5 lcole 0 April 30th, 12:37 PM
Oracle Database and Oracle Fusion Middleware for Private Social Network Application lcole 0 April 30th, 12:31 PM
Oracle Database Maintains a Stronghold in the DBMS Market lcole 0 April 30th, 12:30 PM