Forum Replies Created

Viewing 15 posts - 28,576 through 28,590 (of 49,552 total)

  • RE: Introduction to Indexes: Part 3 – The nonclustered index

    Nadrek (1/7/2011)


    I didn't see any explanation of how, when, and why one would consider equality vs inequality of matches, and that's one of the areas I definitely need to learn...

    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: Introduction to Indexes

    tfifield (1/7/2011)


    Are they a double linked list? I see from the diagrams that they link forward. Do they link backwards also?

    Yes. If it's not in the diagram, it'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: Introduction to Indexes: Part 3 – The nonclustered index

    Kevin Wood-419472 (1/7/2011)


    Great article series. I'm trying to determine what is meant by "left-based subset".

    A subset of the index key, reading from the left.

    eg an index on (Col1, Col2,...

    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: sys.dm_db_index_physical_stats

    TalkToLee (1/7/2011)


    Is there a criteria that you review to say that 'level' #2 has high fragmentation but because of xxx and xxx we shouldn't be concerned

    vs.

    level #3 of this index...

    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: sys.dm_db_index_physical_stats

    p.s. There are several very good index rebuild scripts already written and available for use. Don't reinvent the wheel.

    eg: http://www.sqlfool.com

    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: sys.dm_db_index_physical_stats

    In general, in most cases, worry about the leaf level and no other. The higher levels of the index are generally not large enough for fragmentation to matter, and they're...

    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: Introduction to Indexes

    It's not a seek because there's no predicate. A seek occurs when there's some defined value to search for. It's a backward scan that aborts after 1 page because it...

    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: Sum Null values

    What is the data type of the column?

    What query are you running?

    Please remember we can't see what you're doing. The more info you give, the more likely it 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: Sum Null values

    What's the error?

    What's the data type of the column?

    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: Introduction to Indexes

    Ok, so that statement needs to be amended to 'In normal cases ...' I wasn't thinking about TOP when I wrote that. Do note though, max on a column that'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: Data Loss or Downtime

    It depends. Among other things it depends on what data is going to be missing.

    Thinking back to the bank there were some tables that we could do without during business...

    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: Need help on Index

    It depends. Not enough information to answer that question

    What are the queries that you're creating the index for? What's the table structure?

    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: i want ot attch a >bak file with SQL 2008 i got error

    You don't attach a backup file. You restore a backup file.

    RESTORE DATABASE <dbName> FROM DISK = <Backup file name>

    Exactly what are you trying to do? (step by step or...

    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: Introduction to Indexes

    Try them out with statistics IO on and compare the logical reads with the number of pages in 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: Introduction to Indexes: Part 2 – The clustered index

    It would throw an error.

    Error 666, Severity 16

    The maximum system-generated unique value for a duplicate group was exceeded for index with partition ID <Partition ID>. Dropping and re-creating 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

Viewing 15 posts - 28,576 through 28,590 (of 49,552 total)