Forum Replies Created

Viewing 15 posts - 36,466 through 36,480 (of 49,552 total)

  • RE: Best Autogrowth/AutoShrink Practise for TempDB

    repent_kog_is_near (10/3/2009)


    I'll wait for George is he is able to share the code to get the TempDB into 8 junior TempDBs!!

    No need to wait for George. Use Books Online and...

    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: is Database available during backup?

    Yes

    You know, you could probably have tested it out and had an answer far faster than waiting for someone to notice your question.

    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: Hint 'noexpand' on object is invalid

    The NOEXPAND hint is only valid for indexed views. Normal views have to be expanded because they don't actually stored any data, they're just saved select statements.

    Remove all of 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: Fragmentation in database...........

    With the exception of the heap (which can't be rebuilt because it's not an index), not one of those is over 20 pages in size. Rebuilding very small indexes 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: Fragmentation in database...........

    Well, that output is for multiple tables (5 to be specific), not just the one that you're talking about.

    Can you get the output just for the table that you're interested...

    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: Query engine is not picking the right indexes

    spatnaik77 (10/2/2009)


    I am thinking of using HINT in the query.

    Why?

    Do you want to see a query that uses an index seek or do you want the most efficient query...

    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: Fragmentation in database...........

    Please post results of this query for the table in question

    select index_id, index_type_desc, avg_fragmentation_in_percent, page_count

    from sys.dm_db_index_physical_stats(db_id(), object_id('Table Name'),null, null, 'limited')

    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: Pkey Date default value

    Look up DATEADD in SQL's Books Online.

    If you want to default to yesterday at midnight, then check this blog post out.

    http://sqlinthewild.co.za/index.php/2007/11/05/datetime-manipulation/

    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: Difference between Composite Index and Single Column Indexes ?

    Please post the execution plan of the query in question, both where there are multiple single-column indexes and where there's one composite index.

    I don't see any query in your posted...

    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: Query engine is not picking the right indexes

    spatnaik77 (10/2/2009)


    SELECT AGE FROM CUSTOMER WHERE AGE = 3; it picks the right index. But my requirement is i need almost all the columns in such queries. How should i...

    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: Constraints and indexes

    dndaughtery (10/2/2009)


    When I recreate the index are the primary constraints and unique constraints recreated as well or do I need to run a script to recreate them as well?

    If 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: Fragmentation in database...........

    How large is the index in question? How many pages?

    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: Query engine is not picking the right indexes

    spatnaik77 (10/2/2009)


    ---------Now execute the following query and see the plan. You will see that it is a index scan-----

    --Following query should pick the index IX_AGE but is not picking this...

    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: Constraints and indexes

    dndaughtery (10/2/2009)


    When loading data into a table and I drop the index in order to get better performance. Does this effect the constraints?

    Foreign key constraints, no. Unique and primary key...

    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: After setting max SQL 2005 memory I get message

    xyzt (10/1/2009)


    One user performs certain queries (from within the application) that no one else does and when he runs it, it takes much much longer than any other query in...

    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 - 36,466 through 36,480 (of 49,552 total)