Forum Replies Created

Viewing 15 posts - 91 through 105 (of 242 total)

  • RE: Transactions in t-sql

    I think this will depend on a number of factors, but it is certainly bad practice.

    After an error I'd expect to exit from this stored procedure with a warning message...

  • RE: Unused Space in Tables

    Suresh B. (7/21/2009)


    Page density is very low at 19%, which seems to be tie up with the issue, so any ideas why this would occur on a table that is...

  • RE: Unused Space in Tables

    It's because it's a non clustered index.

    Updates on a non clustered index can effectively be a delete and an insert - on a non clustered index the data is deleted...

  • RE: Transaction log gets full while inserting records

    mayur.patel, there is a highly relevant point in your original post

    mayur.patel (7/19/2009)


    Also database Recovery model is Simple.

    If the recovery mode is simple you do not have to schedule transaction log...

  • RE: Over-Engineering

    vliet (7/15/2009)


    If you buy a car, you have a very limited set of options compared to everything that is already part of that make or model; maybe another radio, or...

  • RE: Over-Engineering

    Steve, great article written to provoke debate, and it has.

    I think you're right, but would add a couple of other reasons why.

    First, the business users who define the specification don't...

  • RE: Transactionlog does not shrink after backup

    Its a common misconception that it's a good idea to shrink the transaction log. If you do, it will just grow again.

    If you have backups every 15 minutes, that's fine....

  • RE: Index Usage Question

    GilaMonster (6/25/2009)


    Tim Walker (6/25/2009)


    Hey Gail, do you know what would happen if one index was narrower but fragmented so actually occupied more pages than a wider one? Which would be...

  • RE: Index Usage Question

    GilaMonster (6/25/2009)


    Tim Walker (6/25/2009)


    Additionally I am guessing it uses the index based on the varchar(3) column because it occupies less pages than the varchar(15) one.

    Depending, of course, on the size...

  • RE: Index Usage Question

    Additionally I am guessing it uses the index based on the varchar(3) column because it occupies less pages than the varchar(15) one.

    🙂

    Tim

  • RE: Index Usage Question

    You have included it - you just didn't realise!

    Where you have a unique clustered index or primary key an index uses this to point to the data. Your example makes...

  • RE: Index Usage Question

    It's also worth noting that if there is a choice of covering indexes that can be used to return the results, the one occupying the smallest number of pages is...

  • RE: Fixing Fragmentation After Shrinking

    The following two statements are both true and do not contradict each other.

    (Gails point) The order in which you perform disk defragmentation / internal defragmentation will make no difference to...

  • RE: Comparing Table Variables with Temporary Tables

    GilaMonster (6/11/2009)


    Tim Walker (6/10/2009)


    Question: (and I wouldn't have even asked it if I hadn't read this first) is what is the point in defining an index on a table variable...

  • RE: Comparing Table Variables with Temporary Tables

    Excellent article. Very comprehensive about the theory!

    Question: (and I wouldn't have even asked it if I hadn't read this first) is what is the point in defining a unique constraint...

Viewing 15 posts - 91 through 105 (of 242 total)