Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2003, 07:43 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default split function equivalent

i can't find split or an equivalent for tokenizing strings in t-sql, is there one?
 
Old September 8th, 2003, 04:56 AM
Authorized User
 
Join Date: Aug 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ref. Link:

http://msdn.microsoft.com/library/de...atYourself.asp

 
Old April 18th, 2007, 12:35 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
If you're looking for a split function for sql, I'm using the dbo.split udf that you can find codes at http://www.kodyaz.com/forums/thread/489.aspx

You can use the dbo.split function like

select * from dbo.SPLIT('A udf for splitting strings',SPACE(1))
 
Old April 18th, 2007, 02:32 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is a more efficient way to split a string, since there are no string handling (reallocate new memory for each iteration)
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=76033


 
Old January 5th, 2009, 08:40 AM
Registered User
 
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Recursive split function

Hello,

I have created a sql function for splitting string values using recursive CTE's for SQL2005 and later.
You can find the t-sql codes for this split function at SQL Server 2005 T-SQL Recursive Split Function

This might be an alternative to existing string manipulating sql functions.

Eralper
http://www.kodyaz.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
using the split function jd_erd Access 2 May 7th, 2007 09:59 PM
split function MunishBhatia ASP.NET 2.0 Professional 4 May 1st, 2007 10:05 AM
excel's yield function equivalent in visual basic thisisprem Beginning VB 6 2 April 25th, 2006 02:06 AM
using 'Split' function p_gauri7 Crystal Reports 0 March 11th, 2005 01:02 PM
Split function Beulah ASP.NET 1.0 and 1.1 Basics 1 September 12th, 2003 09:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.