Forum Replies Created

Viewing 15 posts - 25,366 through 25,380 (of 49,552 total)

  • RE: Reverse arguments in an IN statement?

    No reverse IN, but there's no need to get complex here.

    WHERE ColA = 'x' OR ColB = 'x' OR ColC = 'x' ...

    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 more efficient? WHERE SUBSTRING = ...or... WHERE fldField LIKE 'x%'

    There's a massive difference between the two.

    The first there's a function applied to the column. That makes the predicate non-SARGable, meaning SQL can NEVER use an index seek operation 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: Tail Log Backup in SQL Server 2005

    Lowell (6/23/2011)


    gotcha, so in a disaster recovery scenario like that, where the mdf was damaged/lost, you would not be able to do a tail backup...

    That's exactly the scenario where 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
  • RE: Question on backup of sql database

    Don't restore one by one, that's just plain silly.

    MSDB stores the backup history, generate the restore scripts from MSDB, far easier than trying to figure out what order they should...

    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: The file *.mdf is missing and needs to restore

    Asked and answered: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=162075

    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: Suddenly Data Loss

    Nemachtiani (6/22/2011)


    Hi all

    Does anyone know what would cause data loss on tables after commit with no errors raised neither executed DELETEs?

    Is this a symptom of database corruption?

    No.

    I have...

    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: Question on backup of sql database

    The log backup you have is too early, all its transactions are already in the restored DB. Try the next one in the chain.

    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: Estimated No of Rows Vs Actual No of Rows

    2005 RTM. (I should have taken the bet)

    Patch it to the same level as your servers, then you'll see (likely) a key lookup, not a clustered index seek (which 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: Estimated No of Rows Vs Actual No of Rows

    Help->About (as with most Windows apps)

    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: Estimated No of Rows Vs Actual No of Rows

    I'm almost willing to take a bet that if you check the version of SSMS (not the server) it'll be 2005 RTM. So many people forget they have to patch...

    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: Cannot get DBCC CHECKDB to finish on a semi-VLDB...looking for advice

    Defined amount always, never a % for any database file.

    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: Cannot get DBCC CHECKDB to finish on a semi-VLDB...looking for advice

    TalkToLee (6/22/2011)


    2. is the 'WITH ESTIMATEONLY' even a valid thing to use? It doesn't appear to be very reliable at this moment in time. I am 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: Estimated No of Rows Vs Actual No of Rows

    If I had to guess, your version of management studio is pre SP2 and what you think is a clustered index scan is a key lookup. Key lookups are always...

    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: Cannot get DBCC CHECKDB to finish on a semi-VLDB...looking for advice

    TalkToLee (6/22/2011)


    Then I notice the ODD part...you go into the wizard to review the plan...it shows DBCC CHECKDB(N'database name') WITH NO_INFOMSGS...ok good so far...the report shows the same thing...with one...

    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 the transaction log is writen to

    The log file is circular. So if the minLSN was in VLF 4 and the current point of writing (the maxLSN) was in 8, then VLFs 9, 0, 1, 2...

    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 - 25,366 through 25,380 (of 49,552 total)