Forum Replies Created

Viewing 15 posts - 181 through 195 (of 5,841 total)

  • RE: Append variable to query

    Thom A - Tuesday, August 22, 2017 5:53 AM

    It sounds like what you're after here is dynamic SQL. You can't pass variables...

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

  • RE: Spreading monthly inserts to weekly grain

    How about a sample table, sample data and expected final data state?

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

  • RE: Optimize query that is using like statements

    Since using actual words, what about Full Text Search?

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

  • RE: Optimize query that is using like statements

    LIKEs are tough on the optimizer, as are all those ORs.

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

  • RE: Way to Troubleshoot using TSQL ??

    1) TRY_CONVERT could help

    2) SSIS has a Data Profiling tool that could help

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

  • RE: Query performance tuning - Slow execution time

    ffarouqi - Tuesday, August 15, 2017 8:01 AM

    TheSQLGuru - Tuesday, August 15, 2017 7:31 AM

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

  • RE: Query performance tuning - Slow execution time

    This thing is a beast. May I ask why you were the one tasked with tuning it? What are your qualifications - what makes your company think you will be...

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

  • RE: Query performance tuning - taking more than 9 minutes

    There are umpteen things at play here and given the way you phrased the OP and the blatantly obvious issues with the query itself I will state right up front...

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

  • RE: Subroutines in TSQL

    Jeff Moden - Saturday, August 12, 2017 8:16 PM

    dmeissner - Saturday, August 12, 2017 7:07 PM

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

  • RE: Can I make this query to perform better?

    Luis Cazares - Thursday, August 10, 2017 12:29 PM

    TheSQLGuru - Thursday, August 10, 2017 12:05 PM

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

  • RE: Can I make this query to perform better?

    1) You just cannot hit the same table over and over and be successful.

    2) CASE is your friend!!! Learn to use it!

    3) All of the hits...

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

  • RE: Query optimization help

    1) I still haven't seen anything on the server configuration.

    2) There are numerous tables that have nothing but a clustered index. Some of those clustered indexes are pretty...

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

  • RE: Query optimization help

    1) How can we possibly help you without table definitions (including existing indexes and keys)? 

    2) Have you examined file IO stalls when this is running?

    3) Have...

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

  • RE: Should I Re-design table?

    GilaMonster - Monday, July 31, 2017 8:04 AM

    Grant Fritchey - Monday, July 31, 2017 7:59 AM

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

  • RE: Synonyms causing performance issue - database on same server

    cpeck - Friday, July 28, 2017 10:33 AM

    I finally got it to work.  I realized when I ran it yesterday through SQL...

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

Viewing 15 posts - 181 through 195 (of 5,841 total)