Forum Replies Created

Viewing 15 posts - 11,251 through 11,265 (of 22,214 total)

  • RE: When we should use in a query or a procesure "option(recompile)"

    GilaMonster (2/16/2012)


    Grant Fritchey (2/16/2012)


    The real shocker is that you don't occasionally get the 30 minute execution anyway.

    Variables, not parameters, so no parameter sniffing and the optimiser probably mis-guessing the row...

  • RE: "Managing" the size of a database log file

    Jody.WP (2/16/2012)


    Hi Mark ,

    What is your database archiving strategy? I am asking this because I faced similar problems and our infrastructure guys is still taking their sweet time allocating...

  • RE: "Managing" the size of a database log file

    If the amount of log space needed for the processing is 100gb, then I'd give it that much space and leave it alone. If you only have 100gb... yeah, I'd...

  • RE: Difference?

    One thing that might make a difference is if you use the variables multple times or call gETDATE() multiple times, the latter can result in different values. If that's what...

  • RE: Backups..

    Just remember that backups don't help down time. If you want to improve the recovery time in the event of an outage, in addition to the backups you have, you...

  • RE: When we should use in a query or a procesure "option(recompile)"

    It sounds like a case of bad parameter sniffing, but you can't be sure unless you investigate. You'd need to capture the two execution plans, one for when it's fast,...

  • RE: Backup/Restore Sql 2005 to 2000

    Yeah, if you have 2005, you can run a backup on one machine and then restore it to the other. That's about the easiest way to move a whole database...

  • RE: How to backup only new data?

    I'd cheat.

    Get a copy of Red Gate SQL Compare and just capture the data that exists in one database, but not the other. Very easy that way. But then, I'm...

  • RE: Deadlock Trace Issue

    Ah, you have a parallel execution deadlock. Here's a blog detailing this one. It is hard to troubleshoot. The article should help. This is frequently a bug and there's possibly...

  • RE: Derived tables and similar tops (temp tables & CTEs)

    Rowles (2/14/2012)


    Please correct me if I am wrong.

    Here are some differences between derived tables and CTEs:

    1) CTEs lend themselves to recursive approaches. Where as derived tables would generally...

  • RE: Is the query optimizer part of the execution plan?

    You can also see the compile time values in the execution plan itself. Always check the first operator (SELECT for a query, INSERT/UPDATE/DELETE, as appropriate). That shows compile time parameter...

  • RE: Deadlock Trace Issue

    If you click on the Deadlock Alert in SQL Monitor it should bring up a window that has the basic deadlock information in it.

    You can see the victim and...

  • RE: Moving database

    I wouldn't modify anything until the migration was done and successfully implemented.

  • RE: Moving database

    Absolutely use the Upgrade advisor as Jeff says. That has to be step 1. If it identifies issues, address them first.

    Run a backup. You want to be absolutely safe during...

  • RE: back up into many disks

    Even the new AlwaysOn capabilities with SQL Server 2012 that include asynchronous updates are still just mirrors of the main database, not historical beyond the delay of the asynchronous updates....

Viewing 15 posts - 11,251 through 11,265 (of 22,214 total)