Forum Replies Created

Viewing 15 posts - 241 through 255 (of 371 total)

  • RE: Update table

    I didn't test the answer but I knew the following:

    #2: UNION is not allowed to be used that way;

    #3: That's not enough and will make things worse as every col1...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Backup sequence restores and log shipping question

    GilaMonster (10/22/2011)


    Depends on the size of the database, maintenance window length, restore requirements and a few other things.

    I see what you mean.

    Every situation is unique and must be analyzed properly....

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Mirroring and Back-up strategy

    ALZDBA (7/17/2011)


    Managing Transaction Logs by Gail Shaw[/url]

    That's probably the best article I have read about transaction logs.

    Can't believe I missed it before.

    Thank you for sharing.

    Best regards,

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Backup sequence restores and log shipping question

    Interesting discussion.

    Would the Full-Diff-Log backup method be recommended over the Full-Log method or it depends on the size of the database? I'm asking because I have seen both methods like...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Out of order

    Britt Cluff (10/21/2011)


    Thanks for the question. What's the point in using TOP in a view?

    I wonder that too since the result may be different in each SELECT of the view.

    Maybe...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Out of order

    Ha. Got it right. And it was a tricky question. 😛

    But a great one about a somewhat confusing subject (the ORDER BY, in that case, belongs only to the data...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Managment Studio. Different PC's give different result for same query.

    Scott Levy (10/20/2011)


    Andre, both PC's are connecting to the same database on the server and as far as I know they are both running the same version of Management Studio.

    Sorry...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Managment Studio. Different PC's give different result for same query.

    This seems to be a parsing error and I don't think it has to do with SSMS as it's just a GUI (frontend) and it doesn't have control over query...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Managment Studio. Different PC's give different result for same query.

    I see. 🙂

    It'd be nice to see the actual code though to see if there's a problem with different database compatibility levels.

    Best regards,

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Managment Studio. Different PC's give different result for same query.

    I have never seen such thing in T-SQL before.

    Are you sure it's running properly on one of your PCs?

    Best regards,

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Checking for the non existence of a record

    You could also use WHERE NOT EXISTS with a similar query like Sean's code.

    Best regards,

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Regarding SQL Query optimization

    ChrisM@Work(10/13/2011)


    Even with the actual plan, this is completely unreliable. You need both CPU and io and the best way to do that is with actual timings or better still the...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: Regarding SQL Query optimization

    You could try running a test example using the estimated execution plan button and the percentage taken by each method. I can tell you that the single UPDATE affecting several...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: exceptional logic

    vk-kirov (10/10/2011)


    Nice question

    codebyo (10/10/2011)


    That looks and executes right... but I can't understand why the result is not only the number 4.

    After the EXCEPT, only the number 4 remains. So where...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

  • RE: exceptional logic

    That looks and executes right... but I can't understand why the result is not only the number 4.

    After the EXCEPT, only the number 4 remains. So where does that 5...

    Best regards,

    Andre Guerreiro Neto

    Database Analyst
    http://www.softplan.com.br
    MCITPx1/MCTSx2/MCSE/MCSA

Viewing 15 posts - 241 through 255 (of 371 total)