Forum Replies Created

Viewing 15 posts - 15,286 through 15,300 (of 49,552 total)

  • RE: Is there a loop in this query

    Correlated subqueries are not necessarily executed once per row of the outer query (which I assume is where the 'like loops' came from), the one in this query certainly isn't....

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: transactional Replication- Two log files

    SQL will grow one then the other, that's why you see them both growing. They're still used sequentially, the log reader reads sequentially (by LSN), all writes are sequential. There's...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Sql Server basic certification exam numbers

    http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL Server index fragmentation is high after rebuilt

    Luk (12/11/2012)


    Yes, that's correct, but the index itselft is composed only of that bigint.

    No it's not. If you were talking about a nonclustered index, that would be the case, but...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL Server index fragmentation is high after rebuilt

    Luk (12/11/2012)


    Now, when I run a fragmentation report that particular PK appears twice because it's allocated to both IN_ROW_DATA and LOB_DATA. Why would it be allocated to LOB_DATA?

    The table...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Inconsistent Reads after tuning the query

    Parametrisation is not required for plan reuse. Parametrisation results in better reuse of cached plans, it's not a requirement for any having any reuse at all.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Inconsistent Reads after tuning the query

    SQLSACT (12/11/2012)


    sp_executesql is gonna use a plan that is already in the plan cache, whereas executing the batch on it's own is gonna generate an execution plan, unless you're using...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: error in stored procedure

    I strongly recommend you do not go this approach of generic delete procedures.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to find last database access date/time?

    Lokesh Vij (12/11/2012)


    Is there some way Logon Trigger be used to ascertain this information.

    No. You're not looking for login information, you're looking for database access information. If you were...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to find last database access date/time?

    That's the best you can do without custom auditing. The information you want is not kept by SQL by default.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL SP1 , SP2 , CTP3, CTP4

    CTP - Community technology preview. A pre-release version of SQL 2012 for testing. You don't want those, they're not full versions and they've all likely expired at this point.

    If you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Inconsistent Reads after tuning the query

    nidhis (12/10/2012)


    The batch is big. Can you let me know how how I can check the performance benefits.

    Compare duration, CPU and reads as well as the consistency of the performance.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Deadlock due to intra-query parallelism

    Firstly, turn traceflag 1204 off. It produces the old-style deadlock graph that's very hard to read. With just 1222 on, wait until another deadlock occurs and post the entire deadlock...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Microsoft Certified Master

    Vedran Kesegic (12/10/2012)


    Is it really true that the only test centers for MCM in Europe are in Berlin and London?

    No. There's 2 in the UK that I know of, hence,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Optimization advice for huge tables

    When working with large tables:

    Retrieve just the data that you absolutely need.

    Understand that no one is going to read several million rows, hence do not query several million...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 15,286 through 15,300 (of 49,552 total)