Forum Replies Created

Viewing 15 posts - 31 through 45 (of 93 total)

  • RE: Dynamic Management Views: Changes in SQL Server 2012

    Gazareth (7/3/2014)


    Nice article Ed, much appreciated. Did not know some of these had also been introduced to 2008!

    Cheers

    Gaz

    Some of these were introduced in SQL Server 2008 R2, but were included...

  • RE: Finding and Eliminating Duplicate or Overlapping Indexes

    lauri.pietarinen (6/26/2014)


    May I suggest an alternative script for the same purpose? It takes into consideration ascending/descending but gives false positives for "mirror image" indexes, e.g.

    (c1 , c2 desc, c3) can...

  • RE: Help needed

    Sean Lange (6/19/2014)


    Ed Pollack (6/19/2014)

    There's a bunch of fun ways to do this and in thios one case I went explicitly for the shortest, quickest, and dirtiest 🙂 Not...

  • RE: Help needed

    Sean Lange (6/19/2014)


    Ed Pollack (6/19/2014)


    raghava_tg (6/18/2014)


    create table #temp (id int, data varchar(80))

    insert into #temp (id, data)

    select 1, 'a,b,c'

    union all

    select 2, 'x,y'

    union all

    select 3,'j,k,l'

    select * from #temp

    i want to create...

  • RE: Help needed

    raghava_tg (6/18/2014)


    create table #temp (id int, data varchar(80))

    insert into #temp (id, data)

    select 1, 'a,b,c'

    union all

    select 2, 'x,y'

    union all

    select 3,'j,k,l'

    select * from #temp

    i want to create a output like this.

    1...

  • RE: Finding Breaks In Key Values

    I have a recent SSC article on linking up rows of data to grab a previous or next value for a given column that may be of help:

    http://qa.sqlservercentral.com/articles/CTE/109287/

    This has methods...

  • RE: Finding and Eliminating Duplicate or Overlapping Indexes

    kris7233 (6/17/2014)


    Great article, and very helpful for me especially right now at work.

    I'm wondering why you dropped

    NCI_Product_Weight_DUPE and

    NCI_Product_Weight_OVERLAP

    Instead of dropping

    NCI_Product_Weight and

    NCI_Product_Weight_DUPE

    Just leaving...

  • RE: Finding and Eliminating Duplicate or Overlapping Indexes

    DennisPost (6/17/2014)


    Great article!

    This helped me find a bunch of overlapping indexes.

    Besides the is_Disabled flag, I'd also include the has_filter flag and filter_definition as well.

    Most of the duplicates I found had...

  • RE: Finding and Eliminating Duplicate or Overlapping Indexes

    alexander.oss (6/16/2014)


    I've seen some duplicate-looking indexes created intentionally (perhaps) because the creator wanted to make use of an index that covered common queries. So be careful of deleting duplicates...

  • RE: Finding and Eliminating Duplicate or Overlapping Indexes

    That's an understandable question---and I intentionally left out any automatic scripting from the article. Adding and removing indexes is delicate work and should be done carefully with quite a...

  • RE: Finding and Eliminating Duplicate or Overlapping Indexes

    The is_disabled flag could be worked in, but I would venture that a disabled index and an enabled index that are identical should be flagged as dupes.

    For just display purposes...

  • RE: Finding and Eliminating Duplicate or Overlapping Indexes

    Both are good points! In my effort to keep this "simple" I left out a few use-cases, which you both have covered. I'll modify the article shortly to...

  • RE: Writeable columnstore indexes

    I'll take this one---will go through the changes to columnstore indexes in SQL Server 2014 and an example of the performance benefit of using one vs. standard indexes.

  • RE: Getting the Most out of Statistics

    Jonathan Cohen (6/10/2014)


    Very nice and clear Ed.

    Hope you are not getting overworked on SQL Saturday.

    Jonathan Cohen

    Thanks!!

    So far so good w/ our SQL Saturday---I've got a bunch of great volunteers that...

  • RE: Getting the Most out of Statistics

    feroz.durani (6/9/2014)


    Excellent reasoning. Does sp_updatestats perform a FULL_SCAN or 50% sampling ?

    Good question! sp_updatestats will run an UPDATE STATISTICS statement on all statistics in the database. This will...

Viewing 15 posts - 31 through 45 (of 93 total)