Forum Replies Created

Viewing 15 posts - 106 through 120 (of 692 total)

  • RE: Are the posted questions getting worse?

    select len(cast(year(getdate()) as char)) -- returns 4

    select len(cast(month(getdate()) as char)) -- returns 1

    LEN does an implicit right trim. Try DATALENGTH instead.

  • RE: Are the posted questions getting worse?

    GSquared (6/2/2009)


    The concept is crap, but I'd rather see it published and debunked than left out there.

    Here's my full take (much easier here than on Twitter - damn 140 character...

  • RE: Are the posted questions getting worse?

    RBarryYoung (5/9/2009)


    First and foremost, of course is the string-limit of 8K in 2005. And as noted previously, although Adam Machanic's book does claim to have a workaround for this,...

  • RE: Performance issue with tally solution

    Paul White (4/28/2009)


    I didn't have anything so complex in mind - I'm not looking for something to replace XML :laugh:

    The idea is to be able to split a string twice...

  • RE: Performance issue with tally solution

    OK, here's my latest. A few bug fixes, and it seems to properly ignore consecutive delimiters (you don't want to know how many times I recompiled this fighting off-by-one...

  • RE: Performance issue with tally solution

    David Burrows (4/28/2009)


    how to make it ignore consecutive delimiters

    Ignore in which way?

    I split data with consecutive delimiters, ie a column/field with no data

    In most of the use cases I'm interested...

  • RE: Performance issue with tally solution

    Now you really are scaring me - people are going to put this kind of unprocessed data into a database and then allow multiple users access to it at the...

  • RE: Performance issue with tally solution

    Parsing quoted strings, which would allow embedded delimiters

    e.g.

    "Field1 with commas ,," , Field2 , "Field 3 with embedded quote"" here"

    That's a fun challenge -- I did it in T-SQL a...

  • RE: Performance issue with tally solution

    You will notice the "even_faster" function posted by Adam is missing from the 40000 row sample - I had to kill it after 9 minutes and still no results.

    Probably a...

  • RE: Performance issue with tally solution

    We're not done yet -- if we're going to create the "best" method it should do as much as possible in terms of functionality we would normally want from string...

  • RE: Performance issue with tally solution

    Phil Factor (4/27/2009)


    (Update: Two people asked me to remove the big script, so go compile your own! [BigGrin] )

    Actually, I just asked Adam to put it as an attachment instead,...

  • RE: Performance issue with tally solution

    Paul White (4/27/2009)


    Yes, long, long, ago, at the start of this thread, Flo's original puzzler involved NVARCHAR(MAX), and apparently this was a core requirement. We seem to have moved...

  • RE: Performance issue with tally solution

    Sorry, but I think I cannot. Currently I have only a x64 system. If you have a x64 system, sure!

    This works on both 32 and 64 bit:

    (Update: Two people asked...

  • RE: Performance issue with tally solution

    It does appear to be faster for a single delimiter, but it doesn't work properly for multiple delimiters:

    select * from dbo.ufn_clr_SplitString_Enumerator_Flo2('a,,b', ',,') q

  • RE: Performance issue with tally solution

    Florian Reischl (4/27/2009)


    I really like the _syntax to distinguish between local and module variables. Would you prefer m_anything?

    Personally I like Pascal case for externally-facing variables and camel case for...

Viewing 15 posts - 106 through 120 (of 692 total)