Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 5,841 total)

  • RE: Trigger not Update another table

    I had a client GO OUT OF BUSINESS because all of their triggers were built with the variable problem. And I TOLD them it was going to happen before it...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Check if date ranges overlap

    join the date-range table to itself and have a WHERE clause that checks for a.start >= b.start and a.end between b.start and b.end. Or something similar to that. Play with...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: TVF suddenly slow

    My first guess is that the original plan was "good enough" in that it ran consistently at 50 seconds. But when you altered things you got a new plan and...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: query take to much time to run

    patla4u (2/10/2016)


    Hi All,

    I have total 460 million row in the table. I am running query for year 2016 and month = 7 and we have total 8 millions records. query...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Facing problems with memory/cpu pressure because of multiple executions of the code

    ffarouqi (2/9/2016)


    TheSQLGuru (2/8/2016)


    When you get the chance, here's some great material for you to review:

    http://www.sommarskog.se/query-plan-mysteries.html

    http://www.sommarskog.se/dynamic_sql.html

    http://www.sommarskog.se/dyn-search.html

    Come on brother!. At least now I am expecting a better answer after posting so many...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Why is CAST using an Index Seek??

    LSAdvantage (2/8/2016)


    I’m a new member on a team and came across the following query (which I’ve obfuscated) in a stored procedure and immediately thought I would be able to add...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Facing problems with memory/cpu pressure because of multiple executions of the code

    When you get the chance, here's some great material for you to review:

    http://www.sommarskog.se/query-plan-mysteries.html

    http://www.sommarskog.se/dynamic_sql.html

    http://www.sommarskog.se/dyn-search.html

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SpinLocks

    some may or may not be documented. I would do a web search on paul randal sql server spinlock and go from there.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: FILLFACTOR - Best Practices

    SQL!$@w$0ME (2/8/2016)


    hi Guys,

    Is it a good practice to change the default fill factor value on Instance level?

    Should the Primary key field (IDENTITY KEY) set to fill factor value of 100?

    Any...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SSMS Add-In for SQL Scripts

    I am traveling and cannot take the risk of installing the SSMS Addin at the moment.

    OP:

    I would still like to see a screenshot and text version of what you expected...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SSMS Add-In for SQL Scripts

    I am not sure exactly what SSMS Add-In you are speaking of. Can you give the exact full name and/or company/developer and/or a URL for it? Maybe a screenshot that...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Writing a condition in a stored procedure

    You can read the top posts when you search for that string of words I gave you. You are doing one of the two usual ways of doing this, and...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Writing a condition in a stored procedure

    This is a CLASSIC data processing problem known as an UPSERT. There are a BUNCH of issues with it related to concurrency. Almost every client I have seen this type...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: DB Average Wait Time too High

    Could be one of many hundreds of waits caused by even more things and in any permutation.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Script to create Triggers

    GilaMonster (1/30/2016)


    Kinda makes sense. You may gather that I barely use MERGE. I think the last time I wrote one was when I was teaching a class on T-SQL commands.

    Numerous...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 1,306 through 1,320 (of 5,841 total)