Forum Replies Created

Viewing 15 posts - 27,421 through 27,435 (of 49,552 total)

  • RE: Find index fragmentation?

    It shouldn't return 0 even in compat mode 80. Are you running it from the right DB? Index physical stats is not specific to a database (can be run from...

    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: How to write a message to the SQL Server 2008 R1 error log from TSQL

    RAISERROR ... WITH LOG

    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: Find index fragmentation?

    Yup, that's the query to use, and you've already got it in limited mode (the most efficient)

    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: Avoiding Logging

    [Jim].[dba].[Murphy] (3/10/2011)


    A log truncation could have bad side effects if any part of that database is used by others; rows being modified in some way.

    A log truncation runs...

    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: Avoiding Logging

    Eric M Russell (3/10/2011)


    If you have a scenario where you need to update millions of rows, and don't care about ROLLBACK capability for the entire process, then try updating 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: Bkp and restore

    Tara-1044200 (3/10/2011)


    yes all of the database are partioned on date which means each month will have one file. Could you help me more on how i can backup just partiion...

    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: mirroring and clustering

    Regarding the failover time, check the throughtput and performance of your drives (log and data) and see if there are high latencies on either. Also consider changing the value of...

    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: prefixing indexes

    To do that in SQL you'd need a computed column on LEFT(other column), then you'd need to filter on that computed column. Not for performance, for when you really are...

    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: Bkp and restore

    If you have enterprise edition you can have a partitioned table. Very fast to insert into insert into an empty partition, then you can keep partitioned or merge the partition.

    A...

    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: Largest MS SQL Server Databases

    Try here - http://sqlcat.com/

    You're probably not going to find large, public databases, but there are really large implementations around. Some examples:

    MySpace

    NASDAQ

    etc

    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: Why do i need to update stats after backup and restore?

    If they were good before the backup, they will be good after the restore. As for are they good in general, well, that's harder to tell. If you're having intermittent...

    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: Insert on a clustered index - is column ordering (ASC or DESC) important ?

    moris7 (3/10/2011)


    My goal of using DESC was to always have the most recent ID at the top. When the index is clean and not fragmented i would guess it would...

    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: SQL Server Backup vi Window Backup

    Nope. Unless that's one of a few file-type backups that understands SQL, backing up the database files will get you nothing (if the backup cannot read locked files) or useless...

    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: Bkp and restore

    i must admit, data moving from dev to prod scares me. That's been a complete no-no in just about every large environment I've worked in. Too much risk of development/test...

    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: Insert on a clustered index - is column ordering (ASC or DESC) important ?

    Added at the end (past highest current value in index) is about the best for minimising fragmentation and page splits. unless you absolutely need it desc for some queries, leave...

    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 - 27,421 through 27,435 (of 49,552 total)