Forum Replies Created

Viewing 15 posts - 47,251 through 47,265 (of 49,552 total)

  • RE: INNER JOIN drags query

    Can you also post the execution plans from the 2005 servers (saved as .sqlplan files, zipped and attached to post please)

    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: Casting a smallint column to work with a IN Condition

    The only option other than dynamic SQL (which you said you don't want) is to look up one of the split functions here (should be one in the script section)...

    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: I got burned today at a SQL Server Interview!

    Jeff Moden (2/28/2008)


    Um... star schema's? Isn't there a sidewalk like that somewhere in Hollywood? 😀

    Might be. I know I've heard something about something like that. Will have to check...

    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: I got burned today at a SQL Server Interview!

    Mark Markov (2/28/2008)


    You see, I don't really know SQL Server, I am just trying to memorize all the answers and get a job! :w00t: Please don't criticize me, I need...

    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: GROUP BY difference in 2K5 and 2k?

    I tried that on sQL 2005 SP2.

    Msg 8120, Level 16, State 1, Line 6

    Column 'a.a2' is invalid in the select list because it is not contained in either an aggregate...

    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: I got burned today at a SQL Server Interview!

    When I'm interviewing, I ask questions on any or all of the below topics, depending what position I'm interviewing for.

    Indexes - types, differences.

    Statistics - what, why

    Database corruption - how to...

    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: DBCC Checksum Returned Error

    p.s. You should also try and work out why the corruption occurred. Did you have a server crash? Are you gtting any errors from the hard drives? 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: DBCC Checksum Returned Error

    Sugesh Kumar (2/28/2008)


    Run the DBCC CHECKDB with repair option to get rid of those errors.

    Rather don't. Repair should be the last resort for fixing corruption, not the first.

    The best way...

    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 performance

    First thing you need to do is to identify why the web site is slow. Once you've found the cause of the slowness, it's often fairly easy to fix.

    Performance monitor...

    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: Shrinking log files in SQL 2000

    And after that, take a full database backup.

    Backup log with truncate breaks the log recovery chain, meaning you'll no longer be able to restore to a pouint in time...

    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 triggers and simple recovery model

    In simple recovery mode, all transactions are fully logged.

    When the transactions have committed, and the dirty data buffers have been flushed to disk, the log entries are marked inactive...

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

    At the event I went to, there weren't even any CTP dvds/cds. Guess I'll have to download it myself...

    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: msdb issue

    The LSNs wouldn't match. SQL won't do the log restore.

    Besides, if there's no full backup ever been taken, you can't do a log backup.

    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: Shrink Transaction Log File

    You are corrct, just note that only a transaction log backup truncated the inactive portion of a llog. A database backup does not.

    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: Slow query on 1st request

    Ad-hoc queries are also compiled and their plans cached.

    The increased time may also be due to SQL populating the data cache. On the first read, data must be read 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

Viewing 15 posts - 47,251 through 47,265 (of 49,552 total)