Forum Replies Created

Viewing 15 posts - 466 through 480 (of 5,841 total)

  • RE: Latency issues in Transactional Replication

    External sync wait. 

    What is the latency and bandwidth capability between A and B? The last time it worked was it set up EXACTLY like it is now? Did...

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

  • RE: Problems with coordinating a stored procedure to output results for each row

    Zososql - Tuesday, January 17, 2017 1:23 PM

    You should also look into CROSS/OUTER APPLY. This scenario is one of it's main...

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

  • RE: Troubleshooting Blocking Issues

    I'm not sure if there is a way to see how long a query was blocking other's (as opposed to being blocked, which is tracked), at least historically.

    My go-to tool...

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

  • RE: multiple small indexes or large covering

    Eric M Russell (1/10/2017)


    ScottPletcher (1/10/2017)


    I specialize in tuning, particularly index tuning, and I tend strongly toward the larger, shared index rather than separate indexes. Be aware that if the...

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

  • RE: multiple small indexes or large covering

    1) I'm with Scott that one "larger" index with a number of INCLUDEd columns can be a win from a number of perspectives over a bunch of small ones. There...

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

  • RE: DBCC CHECKDB running more than 20 minutes on 500 MB database

    1) Unless you have very little active data in that large database, 8GB on the server and 4GB for SQL Server is WAY too low.

    2) checkdb can cause a...

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

  • RE: included Column & Clustering Key

    GilaMonster (1/10/2017)


    Rechana Rajan (1/10/2017)


    My doubt is when we create a Non clustered index the clustering key is already a part of it and then why adding PK column as included...

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

  • RE: Performance tuning for a query

    mishrakanchan86 (1/9/2017)


    Hi ALl

    I have a view which looks something like below.

    Select

    * from T1 with(NoLock)

    Inner Hash Join T2 With (NoLck) on T1.PID = T2.PID

    Inner Hash Join...

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

  • RE: Can anyone come up with a better optimized query please?

    halifaxdal (1/9/2017)


    TheSQLGuru (1/6/2017)


    1) Spooling back 3M+ rows to a calling program (SSMS I suppose?) is going to be SLOW.

    This is expected

    2) Can you please capture the actual query plan and...

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

  • RE: Can anyone come up with a better optimized query please?

    1) Spooling back 3M+ rows to a calling program (SSMS I suppose?) is going to be SLOW.

    2) Can you please capture the actual query plan and post that up?

    3) We...

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

  • RE: Large Buffer Latch wait

    Indianrock (1/5/2017)


    I'm the guy waiting for development to figure out how to add option(recompile) to some of the ORM-generated queries 🙂 I have been creating...

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

  • RE: Large Buffer Latch wait

    1) Tune the hell out of your FTS subsystem.

    2) See if OPTION (RECOMPILE) can improve things here - or dynamic SQL (guarding against SQL Injection, obviously).

    3) Given that you are...

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

  • RE: Large Buffer Latch wait

    1) You missed telling us a critical piece of information: how long as the server been up? You provide aggregate information so if the server has been up for a...

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

  • RE: Split Function Usage for Multiple Multi-Select Parameters

    Phil, why would you put a clustered index on the temp table?

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

  • RE: Split Function Usage for Multiple Multi-Select Parameters

    DarthBurrito (1/5/2017)


    I have the task to convert our company reports from query embedded reports to stored procedures.

    Some of the reports require multi-select parameters. I'm currently using a function to functions...

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

Viewing 15 posts - 466 through 480 (of 5,841 total)