Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Content with tag
User Defined Function (UDF)
Items 1 to 20 of 31
Next 20 >>
Payment due date function
Calculates the nth due date for any given date, while accounting for weekends.
Read more...
By
Ralph Schwehr
2012/05/16
|
Source:
SQLServerCentral.com
|
Category:
user defined function (udf)
Rating:
|
Discuss
|
Briefcase
|
2,506 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,965 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,859 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
|
2,353 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,348 reads
TSQL
Read more...
By
mverma4you
2009/04/13
|
Category:
t-sql
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
4,617 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,829 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
|
3,423 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
|
1,212 reads
Function execution
Read more...
By
bitbucket
2008/05/20
|
Category:
user defined function (udf)
Rating:
(not yet rated)
|
Discuss
|
Briefcase
|
4,143 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,965 reads
Get given character's position from a string
Get given character's position from a string
Read more...
By
hxd001_810-512717
2008/02/13
|
Source:
SQLServerCentral.com
|
Category:
user defined function (udf)
Rating:
|
Discuss
|
Briefcase
|
1,649 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
|
14,670 reads
Split by Row & Field delimitters
Like my tdard split but this will take a string and split it by 2 delimiters
Read more...
By
Reddy Software Solutions
2007/12/28
|
Source:
SQLServerCentral.com
|
Category:
string manipulation
Rating:
|
Discuss
|
Briefcase
|
1,493 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,739 reads
Payment due date function
Calculates the nth due date for any given date, while accounting for weekends.
Read more...
By
Ralph Schwehr
2012/05/16
|
Source:
SQLServerCentral.com
|
Category:
user defined function (udf)
Rating:
|
Discuss
|
Briefcase
|
2,506 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...
By
Tim Chapman
2006/05/09
|
Source:
SQLServerCentral.com
|
Category:
user defined function (udf)
Rating:
|
Discuss
|
Briefcase
|
19,386 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,809 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,617 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...
By
Leo Peysakhovich
2004/09/07
|
Source:
SQLServerCentral.com
|
Category:
user defined function (udf)
Rating:
|
Discuss
|
Briefcase
|
11,028 reads
Items 1 to 20 of 31
Next 20 >>
Tags
t-sql
(21)
sql server 7
(4)
miscellaneous
(3)
performance tuning
(3)
string manipulation
(3)
administration
(2)
advanced querying
(2)
backup / restore
(2)
configuring
(2)
date manipulation
(2)
dts
(2)
indexing
(2)
installation
(2)
security
(2)
stored procedures
(2)
table valued function
(2)
triggers
(2)
blogs
(1)
datetime manipulation
(1)
distributed queries
(1)
english query
(1)
monitoring
(1)
msdb
(1)
openxml
(1)
replication
(1)
scalar-valued functions
(1)
schema
(1)
sql puzzles
(1)
test data
(1)
updategrams
(1)
xml
(1)
xsl
(1)
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.