Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

My experiences and references in SQL server
Browse by Tags · View All
SQL Server 14
#SQLServer 14
SQL Scripts 13
#TSQL 6
TSQL 6
SQL Serevr - Issues and Resolutions 3
SQL Server - Best Practises 3
SQL server - Misconceptions 3
SQL server - Statistics 2
SQL Server - Wait stats and Queues 2

Archive · View All
October 2011 8
March 2011 7
April 2011 4
May 2011 3
November 2011 3
December 2010 3
December 2011 2
June 2008 2
February 2011 2
February 2012 1

SQLZealot's Blog

Split function to get values from Comma separated string

Aug 16 2008 7:23AM by Latheesh NK   


Split function is one of the main string function to split a list of items separated by a character in our daily functions.

1. Using While loop
ALTER FUNCTION [dbo].[Split]
( 
	@List nvarchar(2000),
	@SplitOn nvarchar(5)
)
RETURNS @RtnValue table
( 
	Id int identity(1,1),
	Value nvarchar(100)
)
AS
BEGIN
	While (Charindex(@SplitOn,@List)>0)
		Begin
			Insert Into @RtnValue (value)
			Select
			Value = ltrim(rtrim(Substring(@List,1,Charindex(@SplitOn,@List)-1)))
			Set @List = Substring(@List,Charindex(@SplitOn,@List)+len(@SplitOn),len(@List))
		End
		Insert Into @RtnValue (Value)
		Select Value = ltrim(rtrim(@List))
	Return
END


Republished from SQL - My Best Friend [58 clicks].  Read the original version here [32134 clicks].

Latheesh NK
55 · 3% · 1115
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]