Forum Replies Created

Viewing 15 posts - 27,451 through 27,465 (of 49,552 total)

  • RE: Condition in Where clause query

    Nothing specific. You could replace all the 1s with 'a' and the 0s with 'b' and get the same result. It's just a trick for evaluations case conditions.

    What he's doing...

    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: Need Best Maintenance plan

    Which DBCC? There are over 20 such commands.

    Yes, it is usually necessary to rebuild indexes from time to time and do other database maintenance.

    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: Recover data from TRUNCATE

    rithython (3/9/2011)


    Thank you for your help. But, I got only the backup file in the old date before the TRUNCATE transaction. So, what should I do?

    REstore it as a new...

    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: REPLICATION FOR SQL2008

    jolan.mahinay (3/9/2011)


    anyway just to think if there is a tool in sql2008 to replicate mdf and ldf coz where having a problem if in the next month will going 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: Stored procedure with Encryption option functionality & performance impact

    No performance impact. When you call it SQL simply de-obfuscates the procedure and runs it.

    Be aware this is not encryption, it's just obfuscation and is trivial to reverse.

    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 protect MDF & LDF file from copy ?

    Rajat Jaiswal-337252 (3/9/2011)


    But the problem is this is my client requirement so i have to try up to max level i can.

    Then you need to explain to the client that...

    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: Select count on sysindexes using a date where condition

    Sysindexes and sysobjects are deprecated and should not be used any longer. The replacement is sys.objects and sys.indexes. For row counts, see sys.partitions

    That said, it (as well as sysindexes) 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: Why do i need to update stats after backup and restore?

    No. Not unless you consistently have stale stats on the prod database. If you do, that's a far bigger problem than for refresh.

    To clarify, there is no requirement to update...

    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 checkdb

    crainlee2 (3/9/2011)


    I've attempted to execute a DBCC CHECKDB against our 2 largest databases with disastrous results. Both servers, each supporting one of the uber large databases, began to fail 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: REPLICATION FOR SQL2008

    There's SAN replication, but that requires 2 SANs, typically mid-upper range.

    Why are you asking?

    p.s. Please don't post in all caps. It's the online equivalent of shouting at people

    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: what exact does this mean "bump our data agisnt their data and see what falls out"?

    adam spencer (3/9/2011)


    It may seem like a silly question but it bugs me to not know precisely what she means, some clarification on just what to do when getting these...

    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: Proc execution time went from 45 secs to 90 minutes overnight.

    Gagne (3/9/2011)


    Gail let me put things differently then. Should I be worried about this ?

    Other than as a lesson in performance tuning, no

    What really bothers me is how...

    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: Attaching MDF with "old" log file

    Brandie Tarvin (3/9/2011)


    It sounds like you're restoring from a compressed backup file.

    Not necessarily (if so, that's very poor compression). Backups don't include free space in the data file, so...

    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: Attaching MDF with "old" log file

    It depends.

    Seriously, size, IO throughput, other load, etc, 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: Proc execution time went from 45 secs to 90 minutes overnight.

    Way, way too much for a table variable. It's not just the row counts, it's also the row counts in the other tables, distribution of data in the other tables....

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