Forum Replies Created

Viewing 15 posts - 14,866 through 14,880 (of 49,552 total)

  • RE: retrive the data from database date by date

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    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: blocking LCK_M_SCH_S, LCK_M_SCH_M

    opc.three (1/10/2013)


    . Online index rebuilds do not block anything regardless of the isolation level.

    Kinda...

    Online index rebuilds are mostly online. They take a short-lived IX lock at the beginning (which blocks...

    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: Replication without need of Snapshot

    heino.zunzer (1/10/2013)


    Just wondering if a solution with replication is the right approach here.

    Doesn't sound like it. I'd be considering service broker here.

    Replication replicates everything, inserts, updates and deletes.

    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: Replication without need of Snapshot

    A replication publication has to be initialised. Your choices are init from snapshot or init from backup, but there's no option of 'do not initialise'

    If you're just replicating one...

    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: normalization vs de-normalization ?

    Where are these test questions from?

    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: Log Size Issue

    The log file is automatically reused. There are no settings or options you need to change to make this the case. If you're in full recovery model, a log backup...

    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: FASTFIRSTROW Hint

    Jason-299789 (1/10/2013)


    It is also my understanding that while you can get data being returned faster from the initial execute you can also end up with a sub optimal plan being...

    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 2005 - SELECT query takes long time to retrieve

    Please note: 2 year old thread.

    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: Convert Non Clustered PKs to Clustered

    ScottPletcher (1/9/2013)


    If SQL needs only key column(s), why does it read all the leaf pages of the table as well?? That's an incredible waste of I/O.

    The only place...

    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: blocking LCK_M_SCH_S, LCK_M_SCH_M

    opc.three (1/9/2013)


    GilaMonster (1/9/2013)


    opc.three (1/9/2013)


    The nice thing is that no queries need to change, not even the ones with the NOLOCK hint applied, and you'll automatically get transactionally consistent reads.

    Queries...

    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: blocking LCK_M_SCH_S, LCK_M_SCH_M

    opc.three (1/9/2013)


    The nice thing is that no queries need to change, not even the ones with the NOLOCK hint applied, and you'll automatically get transactionally consistent reads.

    Queries with nolock...

    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: Convert Non Clustered PKs to Clustered

    Robert Davis (1/9/2013)


    GilaMonster (1/9/2013)


    robert.nesta123 (1/9/2013)


    Changing NON CL PK to Clustered can have a negative impact?

    Oh yes, especially if the PK column is not a good one for a clustered index.

    Additionally,...

    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: Convert Non Clustered PKs to Clustered

    robert.nesta123 (1/9/2013)


    Changing NON CL PK to Clustered can have a negative impact?

    Oh yes, especially if the PK column is not a good one for a clustered index.

    If so what is...

    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: Convert Non Clustered PKs to Clustered

    robert.nesta123 (1/9/2013)


    PK is written into all NON Clustered index.

    No it's not. The clustered index key is what is in all nonclustered indexes, not the primary key.

    So changing from NON...

    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: Convert Non Clustered PKs to Clustered

    Changing a nonclustered index to a clustered index involved rebuilding the entire table and every single nonclustered index on that table (the data pages have to move, the nonclustered indexes...

    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 - 14,866 through 14,880 (of 49,552 total)