Forum Replies Created

Viewing 15 posts - 136 through 150 (of 2,458 total)

  • RE: Help me with the regular expression

    drew.allen - Wednesday, February 28, 2018 12:52 PM

    Alan.B - Wednesday, February 28, 2018 12:42 PM

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Help me with the regular expression

    ZZartin - Wednesday, February 28, 2018 12:33 PM

    Another option is to use TRY_CONVERT() if you want to make sure it'll actually convert...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Help me with the regular expression

    WHERE @SearchVal NOT LIKE '%[^0-9.]%'
    AND LEN(@SearchVal) - LEN(REPLACE(@SearchVal,'.','')) < 2

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: removing dups for update

    Alan.B - Wednesday, February 28, 2018 11:36 AM

    The solution will involve ROW_ NUMBER() OVER (PARTITION BY empnum ORDER BY email DESC, LEN(<name...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: removing dups for update

    The solution will involve ROW_ NUMBER() OVER (PARTITION BY empnum ORDER BY email DESC, LEN(<name field you're measuring> DESC)

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Does denormalizing the data enhance performance?

    jcelko212 32090 - Thursday, February 1, 2018 11:12 AM

    NewBornDBA2017 - Wednesday, January 31, 2018 11:00 AM
    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Does denormalizing the data enhance performance?

    A few things:
    1. The plan you attached is the Estimated Plan which will not be helpful here
    2. A TOP (10) - that will affect the execution plan, what...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Full or simple recovery for system DBs?

    It depends on how much far back you want to go. I don't think I've ever done a point-in-time restore to the any system database so, for me, simple is...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Advice on how to transition into remote work

    Lynn Pettis - Tuesday, January 23, 2018 4:46 PM

    Alan.B - Tuesday, January 23, 2018 2:01 PM
    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Advice on how to transition into remote work

    I'm in Chicago, IL and can only speak about what I've seen in America. From what I'e seen, more and more companies are allowing remote work. Our DBA works from...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Today's Random Word!

    Ray K - Thursday, January 18, 2018 1:26 PM

    ManicStar - Thursday, January 18, 2018 9:59 AM
    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: T-SQL sorting

    drew.allen - Tuesday, January 9, 2018 1:07 PM

    I guess that...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: IN-Memory tables

    Jeff Moden - Monday, January 8, 2018 5:10 PM

    Just out of curiosity, how many of you good folks have actually used it? ...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: T-SQL sorting

    Stewart "Arturius" Campbell - Monday, January 8, 2018 10:08 AM

    Sean Lange - Monday, January 8, 2018 8:31...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: T-SQL sorting

    I guessed correctly. Good question!

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

Viewing 15 posts - 136 through 150 (of 2,458 total)