Forum Replies Created

Viewing 15 posts - 1,216 through 1,230 (of 2,458 total)

  • RE: Talking baseball

    So, for the first time in a very long time the betting sites have the Cubs as the favorite to win the World Series. We have to beat the Dodgers...

    "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: Understanding the OVER clause

    pilab72 (10/14/2015)


    Is there any stairway about analytics functions?

    Nope. Except for Part 7[/url] of the Stairway to Advanced T-SQL[/url]

    I highly recommend Microsoft SQL Server 2012 High-Performance T-SQL Using Window Functions

    "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: Are the posted questions getting worse?

    Go Cubs!

    "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: SQL Server DBA salary surveys way too low?

    I try to keep up on salary trends for data jobs (BI/DBA/SQL Dev, etc). Though I have not posted my resume anywhere In a few years I still get plenty...

    "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: Syntax help please - How do I update a column with a sequence of numbers starting from 1

    mw112009 (10/7/2015)


    No need

    Found answer....

    DECLARE @id INT

    SET @id = 0

    UPDATE accounts2

    SET @id = id = @id + 1

    GO

    This technique is what many people refer to as...

    "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: Issues and performance of importing XML into SQL Server 2008

    Sideout1972 (1/31/2012)


    TedT,

    It ran horribly from the command line as well. After taking steps to eliminate memory issues by putting the code that processes an XML doc into its own...

    "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: ANY EASY WAY TO REDUCE THE CODE??

    Is there any way to reduce this code??

    Lose that ORDER BY clause; it seems like it's just for display - let display stuff get handled at the application level.

    "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: how do I fine tune this query

    Are you absolutely, positively getting duplicate records is you don't include that DISTINCT. I bet that query will run relatively faster without it. If you do need that DISTINCT then...

    "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: Navigating Hadoop Resources

    Great article. I agree that there's a need to learn Hadoop, NoSQL, etc as that's the trend and where businesses are heading. The well rounded data professional who knows multiple...

    "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: Business is not concerned with HA/DR.

    The reason it is so serious is because they only keep a couple weeks worth of backups which have never been tested. They are all stored on the same SAN...

    "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: Union Stored Procedure

    What Drew said.

    I would add that, based on what you're showing UNION ALL is probably what you want. If you read Itzik Ben-Gan, he often refers to UNION as...

    "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: Getting rid of SELECT *

    Wouldn't it be better to have at least separate stored procedure to use in all those different places but only returning columns that they actually need or maybe replace 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: Business is not concerned with HA/DR.

    I run into this all the time. The problem with DR specifically is it's not sexy. Execs love bragging about, "Now we can <fill in the blank> right from my...

    "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: Split rows into column

    ... Or you can use PatternSplitCM (Duh...) also referenced in my signature....

    SELECT Item

    FROM #Sample S

    CROSS APPLY dbo.PatternSplitCM(S.Numbers,'%[0-9]%')

    WHERE Matched = 1;

    "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: Split rows into column

    One way to approach this involves 3 functions: one that removed duplicate characters, one that replaces characters based on a pattern and Jeff Moden's Splitter. There are links to two...

    "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 - 1,216 through 1,230 (of 2,458 total)