Forum Replies Created

Viewing 15 posts - 16,966 through 16,980 (of 49,552 total)

  • RE: DBA Interview Questions needed - Serious only please.

    CptCrusty1 (8/24/2012)


    --Advanced stuff that is rather obscure.

    Just one point here... Unless your aim is to see if the person will make up garbage or admit they don't know, this probably...

    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: Index Design

    Have you read those three indexing articles yet? If not, please read them, especially the third 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: Index Design

    Yes, it's used to find the data row.

    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 Output

    That is the output from traceflag 1204. Hard to interpret, missing information.

    Please turn traceflag 1204 off (and why is 3226 on? do you know what it does?) and post the...

    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: Index Design

    Data row = that which is found in a table (heap or clustered index)

    Index row = that which is found in nonclustered indexes.

    There are some differences in their details, 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: Index Design

    No, what would it need to go to the base table for?

    The only column you're referencing in your query in Col3, and that's in the index row at the leaf...

    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: Lock escalation concept

    dev.tridib (8/24/2012)


    If both update and select are part of the same transaction. and update is having a X lock on the data rows, IX lock on the index page...

    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: Index Design

    If the index satisfies the query completely, why would SQL need to go to the base table?

    Please read the articles I referenced.

    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: Index Design

    SQLSACT (8/24/2012)


    Am I missing anything here?

    Mainly that the pointer to the rest of the row is the clustered index key (if the base table is a clustered index). Not two...

    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 Output

    Please turn traceflag 1204 off. Why is 3226 on? Do you know what it does?

    Once done if you get a deadlock graph from with the output from 1222, please post...

    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: Lock escalation concept

    No contradiction there. What's confusing 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: table valued function

    Nullified (8/23/2012)


    CREATE FUNCTION [dbo].[functionname]

    (

    @inputvraiables Datatype

    )

    RETURNS @tablevariablename table

    (

    Table columns

    )

    AS

    BEGIN

    whatever result data set you want the table variable to hold(Basically select stmts)

    RETURN

    END

    With that form (which...

    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: Are the posted questions getting worse?

    Jeff Moden (8/23/2012)


    GilaMonster (8/23/2012)


    Data archiving. Can't use partition swaps because it's standard edition.

    Have you considered partitioned views?

    Create a new table every month, alter the view to include that and exclude...

    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: table valued function

    Honestly, if you're a beginner maybe stay away from table-valued functions. They can be performance nightmares used wrong.

    They can be used anywhere a table can be used, whether it's a...

    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: Simultaneous read and write in SQL server 2008

    Not a limitation of SQL Server. Usually caused by inadequate indexing, inefficient code, poor design, mixture of them. That's not a deadlock, what you're describing is simply blocking.

    Chapter 6: http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/

    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 - 16,966 through 16,980 (of 49,552 total)