Forum Replies Created

Viewing 15 posts - 8,836 through 8,850 (of 49,571 total)

  • RE: Just curious, what are your SQL pet peeves ?

    patrickmcginnis59 10839 (6/3/2014)


    So whats the beef with "best practices"?

    Over-priced 'consultants' who justify their non-standard settings and unconventional configuration options with 'It's best practice' with an undertone of 'and lesser...

  • RE: Always on Secondry database backup plan & Recovering.

    Faisal Malik (6/3/2014)


    You can't use copy_only backup in point in time recovery.

    The only thing you can't do with a copy-only is restore differentials onto it. You can restore log backups...

  • RE: Index columns

    The key column vs include column should be answered by the third one.

  • RE: Profiler Stop Time at 11:59PM

    All you need to do there is get the date of the current getdate(), with the time portion removed (easy enough), then add that 23 hours and 59 minutes to...

  • RE: Profiler Stop Time at 11:59PM

    SET @StopTime = DATEADD(MINUTE,59,DATEADD(HOUR,23,GETDATE()))

    Trace will stop 23 hours and 59 minutes after it starts, so if started at midnight it will stop at 23h59

  • RE: SQL Database Size 0 and Unallocated space in negative ..how to Free up?

    The only way a DB can record 'negative' size or free space is when the page allocation data is wrong. Hence Jeff's recommendation.

  • RE: DBCC checkdb allocation errors

    Can you please run the following and post the full and complete, unedited output?

    DBCC CheckDB(<database name here>) with no_infomsgs, all_errormsgs

    I can't tell if you've left out a line or not.

    Edit:...

  • RE: Index columns

    Last time you asked that question (http://www.sqlservercentral.com/Forums/Topic1574340-2799-1.aspx), I referred you to three articles on indexes. Did you read them?

  • RE: Are the posted questions getting worse?

    Lynn Pettis (6/2/2014)


    Between NOLOCK and no gaps in invoice numbers how much more fun can we have??

    Replacing EXISTS with (something) because Some Person said it's slow.

  • RE: Making Sense of Statistics

    BWFC (6/2/2014)


    It seemed logically different from looking up something each time needed it with the subqueries.

    But that's not how subqueries behave....

  • RE: Making Sense of Statistics

    BWFC (6/2/2014)


    It was just that conventional wisdom is that set based is best so I thought that there would be an improvement.

    What does set-based have to do with changing...

  • RE: Making Sense of Statistics

    Igor Micev (6/2/2014)


    GilaMonster (6/2/2014)


    Igor Micev (6/2/2014)


    Can you run this set (do it on test)

    dbcc dropcleanbuffers

    dbcc freeproccache

    dbcc freesessioncache

    Why?

    Sometimes when you run the same query again it uses less physical reads, since...

  • RE: Making Sense of Statistics

    In general, lower numbers are better, however those stats values are so low there's no point in tweaking.

    As for subqueries vs joins, depends on where the subqueries are, how...

  • RE: Making Sense of Statistics

    Igor Micev (6/2/2014)


    Can you run this set (do it on test)

    dbcc dropcleanbuffers

    dbcc freeproccache

    dbcc freesessioncache

    Why?

  • RE: Not Exists

    First test and see if there's a gram of truth in that statement and whether you even need to be looking for an alternative.

Viewing 15 posts - 8,836 through 8,850 (of 49,571 total)