Forum Replies Created

Viewing 15 posts - 7,651 through 7,665 (of 8,416 total)

  • RE: How Often Should I Maintain My Indexes

    isabel (6/22/2009)


    Hi, how often do i need to maintain my indexes (executing dbcc dbreindex)?

    Use ALTER INDEX ... REBUILD | REORGANIZE instead of DBCC DBREINDEX (it is deprecated and will be...

  • RE: Is DBCC REINDEX log shipped?

    DBCC REINDEX is deprecated in SQL Server 2005 and 2008. It will be removed from the next version, you should use ALTER INDEX instead. All logged operations will...

  • RE: .mdf question

    My guess (FWIW) is that the question is about moving a table to a secondary filegroup (typically named *.NDF)

    If so, the following MSDN article explains files and filegroups and links...

  • RE: Confusions about deadlock

    MSDN: Detecting and Ending Deadlocks contains full information on the trace flags mentioned.

    Unsure where Abhay has seen a table-level UPDATE lock.

    Also unsure how extent locks (which are only used for...

  • RE: Lock Escalation

    Grant Fritchey (6/24/2009)


    I read it the same way for what it's worth.

    I think that makes $0.04 in total 😉

    P.S. Enjoyed your article today Grant

  • RE: Confusions about deadlock

    Oh, while I think of it, one thing you might find interesting is that the 'wait resource' associated with a lock - a string like (0801c4e1f5e4) for example - can...

  • RE: Confusions about deadlock

    The deadlock graph you provided shows only the HoBt (heap or B-tree) ID involved - which for SQL 2005 will be the same as the partition ID in sys.partitions. ...

  • RE: stored proc - default return value

    The simple answer is that SQL Server only guarantees to return zero on success - but then you knew that 😉

    If the stored procedure doesn't provide an explicit return value...

  • RE: Confusions about deadlock

    Sheng (6/23/2009)


    In the below screen shot, it seems a same index is held X and U by different process. But according to the Lock Compatibility table, this should not happen.

    And...

  • RE: Adding Filegroups

    I know I just seem to be posting links here, but http://technet.microsoft.com/en-us/library/cc966413.aspx is a Microsoft white paper on SQL Server 2005 Performance Tuning using the Waits and Queues methodology. ...

  • RE: Lock Escalation

    Hey Ed,

    Maybe we read the original post differently, but:

    DBA (6/9/2009)


    Hi, i have many complains of having lock escalations in my DB

    Notice the word 'complains' not 'complaints' - I took this...

  • RE: IO stalls

    From the same white paper:

    http://technet.microsoft.com/en-us/library/cc966413.aspx


    If IO_stalls is inordinately high for one or more files, it is possible that there is either a disk bottleneck or that high reads and writes...

  • RE: Are the posted questions getting worse?

    RBarryYoung (6/24/2009)


    The funny thing is about a week after I submitted that, I came up with a cople of different compression schemes that are almost twice as efficient. I...

  • RE: GETDATE() remove Time

    hi_abhay78 (6/23/2009)


    add this : select rtrim(cast(GETDATE() as varchar(12)))

    Abhay,

    1 Using CONVERT with a style parameter when converting date-time to string is more robust and explicit.

    2 Your statement does not work correctly...

  • RE: GETDATE() remove Time

    Gail's method has the distinct advantage of being able to seek using an index. The other methods would have to scan the table or the whole index.

    There was a...

Viewing 15 posts - 7,651 through 7,665 (of 8,416 total)