Forum Replies Created

Viewing 15 posts - 1 through 15 (of 57 total)

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    You can go one step further with Dwain's code and remove the table and take the two selects and combine them into a union all.

    /* Anything is possible but is it worth it? */

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    Alan.B (11/5/2013)


    Forgive me if the code to do this has already been posted but I had a requirement for a greater-than-8k splitter. I made the following changes:

    1) Changed @pString...

    /* Anything is possible but is it worth it? */

  • RE: Performance of the SQL MERGE vs. INSERT/UPDATE

    Good write-up. I used to love MERGE when it was first introduced. I was bit on a few bugs but worked through them. However, /* edit Aaron */ wrote a...

    /* Anything is possible but is it worth it? */

  • RE: Counting distinct periods of consecutive days

    jcrawf02 (10/4/2012)


    report logic might have a slight flaw. I get why you'd do this for ER visits over midnight, but what if the patient comes in on Friday at noon,...

    /* Anything is possible but is it worth it? */

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    Nadrek (6/20/2012)


    Sean Lange (6/20/2012)


    I too have struggled with this occasionally. I use this splitter in a lot of very unconventional ways. For example say I want to find all anchor...

    /* Anything is possible but is it worth it? */

  • RE: Convert a string list to TABLE with single CTE query

    Sandor,

    Have a look at Jeff Moden's splitter testing. You'll find that the inline tally table version is quite fast without needing a helper table and he's done all the testing...

    /* Anything is possible but is it worth it? */

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    ErikEckhardt (3/19/2012)


    Second try: failed. 3 days and 20-some-odd hours later, exact same results as before, only with wait time 334,605,998. 🙂

    I think I will not be running this again on...

    /* Anything is possible but is it worth it? */

  • RE: String tokenizing / splitting

    Jeff Moden (2/25/2012)


    Still, I have to give the credit to Itzik for the wonderful and very useful idea especially since it generates virtually no reads. The use of a...

    /* Anything is possible but is it worth it? */

  • RE: DDL trigger

    cfradenburg (1/18/2012)


    I probably would have used "viewed" instead of "stored" but at least it's not a wording choice that makes it more likely for people to get it wrong.

    Yep, I...

    /* Anything is possible but is it worth it? */

  • RE: Audit All Permissions

    Very handy! Here's the code with the characters removed and the database name safely quoted.

    /*************************************************************************************************

    *** Server Permissions Audit ***

    **************************************************************************************************

    This script is used for auditing the permissions that exist on a...

    /* Anything is possible but is it worth it? */

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (10/11/2011)


    Here's something fun for those of us unlucky enough to not be at PASS.

    Nice.

    /* Anything is possible but is it worth it? */

  • RE: Job Opening in Kansas City/Topeka, KS

    Probably didn't help that the job posting didn't upload either...

    /* Anything is possible but is it worth it? */

  • RE: Job Opening in Kansas City/Topeka, KS

    Evil Kraig F (9/29/2011)


    toddasd (9/29/2011)


    But...it's Kansas 😛

    Heheh, my reaction was: But it's FoxPro.

    You might want to mention a bit more about the SQL Skills you'd like them to bring to...

    /* Anything is possible but is it worth it? */

  • RE: Union results

    SQL Kiwi (9/22/2011)


    Cliff Jones (9/22/2011)


    Yes, I saw 1,2,3 and almost forgot to count the null value. Good straight forward question with all the likely wrong answers.

    I did forget to...

    /* Anything is possible but is it worth it? */

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    peter-757102 (8/12/2011)


    You know how these things go

    I sure do. I don't think Jeff has the varchar(max) article posted but I'm sure we'll see it featured when it is.

    /* Anything is possible but is it worth it? */

Viewing 15 posts - 1 through 15 (of 57 total)