Viewing 2 posts - 1 through 2 (of 2 total)
I wrote a function very similar to this. I added some code to catch reserved characters ( ,")
CREATE FUNCTION [dbo].[split](
@sInputList VARCHAR(max),
...
September 12, 2008 at 9:54 am
#871108
It could also be done with a table variable joined against itself and some clever grouping.
For example:
if exists (select * from tempdb.dbo.sysobjects where [name] = '##t')
begin
drop table ##t
end
create table ##t...
June 7, 2005 at 10:15 am
#563601