Pages

Saturday, September 21, 2013

SQL SERVER – User Defined Functions (UDF) to Reverse String – UDF_ReverseString | Journey to SQL Authority with Pinal Dave

UDF_ReverseString UDF_ReverseString User Defined Functions returns the Reversed String starting from certain position. First parameters takes the string to be reversed. Second parameters takes the position from where the string starts reversing. Script of UDF_ReverseString function to return Reverse String. CREATE FUNCTION UDF_ReverseString ( @StringToReverse VARCHAR(8000), @StartPosition INT ) RETURNS VARCHAR(8000) AS BEGIN IF (@StartPosition… Continue Reading...

Source: SQL SERVER – User Defined Functions (UDF) to Reverse String – UDF_ReverseString | Journey to SQL Authority with Pinal Dave

No comments:

Post a Comment