Forum Replies Created

Viewing 15 posts - 1,321 through 1,335 (of 2,458 total)

  • RE: Can this be done?

    jonathanm 4432 (7/21/2015)


    Never used powershell. Is it something that is easily learned and can be done?

    Check out Stairway to Powershell[/url]

    "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: Different characters on new SQL Server 2005 than previous SQL Server 2005 server?!

    WebTechie (7/21/2015)


    Hello,

    I recently migrated a production environment from a Windows 2003 server with SQL Server 2005 (SVPK 2). I migrated the environment to a Windows 2008 Server with SQL...

    "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: Indexes with more writes than reads

    lmarkum (7/17/2015)


    Alan,

    Thanks for the comments. If an index has 50 reads and 1 million writes, for example, then 99.9 of the usage of that index is spent on...

    "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: Find the position of all occurrences of an expression within a string

    Steven Willis (4/19/2013)


    Jeff Moden (4/14/2013)


    Please consider using a Tally Table instead of a recursive CTE to count. Please see the following article as to why.

    http://www.sqlservercentral.com/articles/T-SQL/74118/

    Thanks for the suggestion Jeff....

    "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: Indexes with more writes than reads

    The number of reads on some of these did give me pause, despite the out of balance ratio to writes.

    There's no reason (based on the information you have provided...

    "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: Replication Issues

    Welsh Corgi (7/17/2015)


    Alan.B (7/16/2015)


    Is there a work around?

    If it's possible to index the view that would would be an option.

    That is not going to work.

    Thanks.

    That's bummer. I have never...

    "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: Indexes with more writes than reads

    [Quote]In some cases there are a few hundred thousand

    reads but maybe a million writes on the index.[/quote]

    That's not the best way to determine if you should keep an index....

    "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 ALL performance issues - one table is NULL

    There's not enough information here to give you a definitive answer.

    Could you post:

    1. The DDL for both tables

    2. The query plan produced when you do a SELECT * 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: PatReplace8K

    DonlSimpson (6/30/2015)


    Alan.B (6/30/2015)


    Based on my testing, the function appears to perform a bit faster using CHECKSUM over ROW_NUMBER() instead of the conversion to BIGINT in the TOP clause.

    http://www.sqlservercentral.com/Forums/Topic1585850-391-3.aspx

    So 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: Replication Issues

    Is there a work around?

    If it's possible to index the view that would would be an option.

    "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?

    SQLRNNR (6/30/2015)


    Congrats Alan!!!

    What is that building in the background?

    Thank you sir. That's a Northwestern University building - I think it's the medical school but it could be the law...

    "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?

    SQLRNNR (6/30/2015)


    Alvin Ramard (6/30/2015)


    Question is being asked in the forum: "if mdf get full by data then how to make free space without adding disk."

    Is it ok to suggest dropping...

    "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?

    Thank you everyone for the kind words!

    "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?

    spaghettidba (6/29/2015)


    Congrats Alan! My second daughter turns 3 months on Friday and I can confirm that SQL stands for Sleep Quality Lowered in this case 😀

    Brilliant and so true!

    "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: PatReplace8K

    DonlSimpson (6/30/2015)


    ChrisM@Work (6/30/2015)


    Nice job, Alan.

    One question: what's the CHECKSUM() for? It doesn't appear to change the result from ROW_NUMBER().

    Same question.

    PatExclude8K and PatReplace8K evolved from the thread at the end...

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