Forum Replies Created

Viewing 15 posts - 38,266 through 38,280 (of 49,552 total)

  • RE: SQL Backup removes fragmentation ?

    jimmycjen (6/22/2009)


    I noticed the backup file size is always smaller than the actual database file.

    Because the database file may have some empty space and the backups just contain 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: Query hints and Table Hints

    sarvesh singh (6/22/2009)


    for e.g in the below query what does the merge join do?

    Force SQL to use a MERGE join to join the tables, regardless of whether a merge, loop...

    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: Are the posted questions getting worse?

    Grant Fritchey (6/22/2009)


    Oh, lordy. That's too much like work. After about the third SELECT DISTINCT, I lost interest.

    There are three select DISTINCT in there? I didn't even look that far,...

    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 Backup removes fragmentation ?

    jimmycjen (6/22/2009)


    Our database is already 90% fragmented.

    Index fragmentation or file-system fragmentation?

    Does SQL Server backup removes the fragmentation ?

    All SQL backup does is read through the database file 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: Which is better

    Lynn Pettis (6/22/2009)


    Isn't this, optimized cursor an oxymoron?? 😉

    Optimised cursor = runs way slower than set-based code

    Unoptimised cursor = runs way, way, way slower than set-based code

    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: Transaction log not shrinking after Maintenance Task

    Should be about the same either way, providing none of them have an explicit transaction wrapped around the whole lot.

    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: Are the posted questions getting worse?

    Anyone want to take a stab at 800+ lines of cursor-ridden, mostly uncommented code?

    http://www.sqlservercentral.com/Forums/FindPost739170.aspx

    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 hints and Table Hints

    sarvesh singh (6/22/2009)


    I am not clear what Query hints and table hints do? When are they used?

    Have you looked in SQL's Books Online? There's a relatively good description of all...

    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: Database corruption

    chris_wallace_000 (6/22/2009)


    Thanks SSChampion - will do.

    Who are you talking to? 😉

    SSChampion is a forum title, like yours is "Forum Newbie"

    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: Common questions asked in SQL Server DBA Interview

    Gaby Abed (6/22/2009)


    A deadlock is where two blocks can't make nice (they block each other), and SQL Server kills the one that is taking up less resources?

    That's one 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: Database corruption

    I'm not an expert on IO or hardware.

    Was there a hard power failure? If the caches aren't properly battery-backed, that can cause problems.

    Make sure that the HBA drivers 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: Errorlogs removing

    No need to delete them. SQL only keeps a certain number (default 6) and automatically deletes the older ones. New error logs get created (and older ones deleted) whenever SQL...

    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: Database corruption

    chris_wallace_000 (6/22/2009)


    SQL Error Log:

    06/09/2009 10:18:54,spid21s,Unknown,An error occurred during recovery preventing the database 'KentLive' (database ID 8) from restarting. Diagnose the recovery errors and fix them or restore from a known...

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

    Not enough information.

    If you want advice on indexing a query, please post at minimum the query, the table definitions and current index definitions as well as the execution plan for...

    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: Not displaying 'double' information - way to group

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    It would be far more useful 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

Viewing 15 posts - 38,266 through 38,280 (of 49,552 total)