SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Content with tag User Defined Function (UDF) Rss

Refine your search with one of the following additional tags (with number of items):

T-SQL (21)     Configuring (2)     Triggers (2)     Replication (1)    
SQL Server 7, 2000 (4)     Date Manipulation (2)     Blogs (1)     Scalar-valued Functions (1)    
Basic Querying (3)     DTS (2)     Datetime Manipulation (1)     Schema (1)    
Miscellaneous (3)     Indexing (2)     Distributed Queries (1)     SQL Puzzles (1)    
Performance Tuning (3)     Installation (2)     English Query (1)     Test Data (1)    
String Manipulation (3)     Security (2)     Monitoring (1)     UpdateGrams (1)    
Administration (2)     Stored Procedures (2)     msdb (1)     XML (1)    
Advanced Querying (2)     Table Valued Function (2)     OpenXML (1)     XSL (1)    
Backup and Recovery (2)    
   Items 1 to 20 of 30    Next 20 >>
 

A Function Gotcha with the Use of an Asterisk

This article describes and demonstrates the problem of using asterisk to select all fields from a table within a table function. (from Apr 2008)   Read more...
By Stephen Lasham 2009/09/11 (first published: 2008/04/30) | Source: SQLServerCentral.com | Category: User Defined Function (UDF)
Rating: |  Discuss |  Briefcase | 17,593 reads

SQL Server user defined function to convert MSDB integer value to time value

In a recent tip I outlined a process for converting a date, stored as an integer into a datetime data type. Date and time information for run history of SQL Server Agent jobs is stored within the msdb..sysjobshistory table as an integer data type, not as a datetime as one would expect. As promised, this tip picks up where we left off. On converting the integer-typed run_time into a format that is more user friendly for presentation purposes.  Read more...
By Additional Articles 2009/05/20 | Source: MSSQLTips.com | Category: msdb
Rating: (not yet rated)  Rate this |  Briefcase | 1,030 reads

SQL Server UDF to pad a string

Unlike other relational database management systems that shall remain nameless, SQL Server's underlying coding language, T/SQL, does not have a built-in function for padding string values. I recently took it upon myself to create my own and as you'll see I got a little carried away  Read more...
By Additional Articles 2009/05/15 | Source: MSSQLTips.com | Category: String Manipulation
Rating: (not yet rated)  Rate this |  Briefcase | 1,630 reads

Comparing Hardcoded functions, In-Line TVF's, and Scalar Functions

While perusing some of the threads on SQLServerCentral.com one of the questions that hit me was regarding the use of scalar functions in queries. In this particular case, in the column list of a SELECT statement. Did it make sense to encapsulate a routine...  Read more...
By Lynn Pettis 2009/05/12 | Source: SQLServerCentral.com | Category: Blogs
Rating: (not yet rated)  Rate this |  Briefcase | 1,028 reads

TSQL

By mverma4you 2009/04/13 | Category: T-SQL
Rating: (not yet rated) |  Discuss |  Briefcase | 4,193 reads

SQL Server UDF to convert integer date to datetime format

This short tip shows how you can convert an integer date, such as those stored in msdb to a real datetime value.  Read more...
By Additional Articles 2009/04/03 | Source: MSSQLTips.com | Category: Date Manipulation
Rating:  Rate this |  Briefcase | 2,052 reads

Using schema binding to improve SQL Server UDF performance

SCHEMA BINDING is commonly used with SQL Server objects like views and User Defined Functions (UDF). The main benefit of SCHEMA BINDING is to avoid any accidental drop or change of an object that is referenced by other objects. A User Defined Function (UDF) may or may not access any underlying database objects, but in this tip we show how using SCHEMA BINDING with a UDF can improve performance even if there are no underlying objects.  Read more...
By Additional Articles 2009/03/09 | Source: MSSQLTips.com | Category: Schema
Rating:  Rate this |  Briefcase | 2,518 reads

UDF to return a multi column table of values from an input string

This UDF returns a multi column table of values from an input string of comma separated values  Read more...
By Andy S 2008/06/11 | Source: SQLServerCentral.com | Category: User Defined Function (UDF)
Rating: |  Discuss |  Briefcase | 853 reads

Function execution

By bitbucket 2008/05/20 | Category: User Defined Function (UDF)
Rating: (not yet rated) |  Discuss |  Briefcase | 3,837 reads

A Function Gotcha with the Use of an Asterisk

This article describes and demonstrates the problem of using asterisk to select all fields from a table within a table function. (from Apr 2008)   Read more...
By Stephen Lasham 2009/09/11 (first published: 2008/04/30) | Source: SQLServerCentral.com | Category: User Defined Function (UDF)
Rating: |  Discuss |  Briefcase | 17,593 reads

Get given character's position from a string

Get given character's position from a string  Read more...
Rating: |  Discuss |  Briefcase | 1,335 reads

Performance Tuning: Concatenation Functions and Some Tuning Myths

Rumor has it that Concatenation functions have gotten the nasty reputation of being "performance hogs". Here's why that's not true.  Read more...
By Jeff Moden 2008/01/01 | Source: SQLServerCentral.com | Category: Test Data
Rating: |  Discuss |  Briefcase | 11,285 reads

Split by Row & Field delimitters

Like my tdard split but this will take a string and split it by 2 delimiters  Read more...
Rating: |  Discuss |  Briefcase | 1,309 reads

Understand when to use user-defined functions in SQL Server

In the simplest terms, a user-defined function (UDF) in SQL Server is a programming construct that accepts parameters, does work that typically makes use of the accepted parameters, and returns a type of result. This article will cover two types of UDFs: table-valued and scalar-valued.  Read more...
By Additional Articles 2007/12/12 | Source: Builder.com | Category: User Defined Function (UDF)
Rating:  Rate this |  Briefcase | 3,446 reads

Payment due date function

Calculates the nth due date for any given date, while accounting for weekends.  Read more...
Rating: |  Discuss |  Briefcase | 1,663 reads

Complex Computed Columns

Computed columns in SQL Server 2000 allow you to have a calculated value available easily in a query. However by using a function instead of a simple formula you can build some very interesting solutions. New author Tim Chapman brings us a look at this technique.   Read more...
Rating: |  Discuss |  Briefcase | 17,055 reads

Tokenizing a String Using PARSENAME

SQL Server string manipulation using T-SQL leaves lots to be desired. Many postings and complaints about T-SQL deal with strings, but there are ways to work with it. Author Eli Leiba brings us a way to split out portions of a string that contains tokens with a user defined function. Read on to see how this is accomplished and the code used to perform the splitting.   Read more...
By Eli Leiba 2004/12/27 | Source: SQLServerCentral.com | Category: User Defined Function (UDF)
Rating: |  Discuss |  Briefcase | 9,124 reads

SQL 2000 User Defined Function Primer

Many programming languages have supported User Defined Functions for years, but they are new to SQL Server 2000. In this article we will look at some of the ways functions can be used within SQL Server 2000.   Read more...
By Neil Boyle 2004/10/22 (first published: 2001/05/02) | Source: SQLServerCentral.com | Category: User Defined Function (UDF)
Rating: |  Discuss |  Briefcase | 20,157 reads

Exotic use of User Defined Function

User defined functions were added in SQL Server 7 and enhanced in SQL Server 2000, but they are still a relatively little used feature. Here's a look at a unique way that Leo Peysakhovich solved a problem using a UDF.   Read more...
Rating: |  Discuss |  Briefcase | 10,717 reads

Date Time Values and Time Zones

Dinesh looks at the date functions, how to work with time zones (or not), and does a brief comparison to see how you do similar tasks in Oracle.   Read more...
By Dinesh Asanka 2003/12/22 | Source: SQLServerCentral.com | Category: Advanced Querying
Rating: |  Discuss |  Briefcase | 14,103 reads
   Items 1 to 20 of 30    Next 20 >>
 
Most popular

A Function Gotcha with the Use of an Asterisk

This article describes and demonstrates the problem of using asterisk to select all fields from a table within a table function. (from Apr 2008)   Read more...
By Stephen Lasham 2009/09/11 (first published: 2008/04/30) | Source: SQLServerCentral.com | Category: User Defined Function (UDF)
Rating: |  Discuss |  Briefcase | 17,593 reads

Performance Tuning: Concatenation Functions and Some Tuning Myths

Rumor has it that Concatenation functions have gotten the nasty reputation of being "performance hogs". Here's why that's not true.  Read more...
By Jeff Moden 2008/01/01 | Source: SQLServerCentral.com | Category: Test Data
Rating: |  Discuss |  Briefcase | 11,285 reads

Using schema binding to improve SQL Server UDF performance

SCHEMA BINDING is commonly used with SQL Server objects like views and User Defined Functions (UDF). The main benefit of SCHEMA BINDING is to avoid any accidental drop or change of an object that is referenced by other objects. A User Defined Function (UDF) may or may not access any underlying database objects, but in this tip we show how using SCHEMA BINDING with a UDF can improve performance even if there are no underlying objects.  Read more...
By Additional Articles 2009/03/09 | Source: MSSQLTips.com | Category: Schema
Rating:  Rate this |  Briefcase | 2,518 reads