Compressed Backups

  • Stewart "Arturius" Campbell (6/13/2014)


    Almost missed the critical phrase "in a backup set"

    Good question, Steve, thanks

    + 1 🙂

    Thanks & Best Regards,
    Hany Helmy
    SQL Server Database Consultant

  • nice question... i am aware of this kind of restore and backup...:-D

    Manik
    You cannot get to the top by sitting on your bottom.

  • Hi,

    I have tried taking the backup with the following t-sql commands

    case I

    -----------------------------------------------------

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak' with compression

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak'

    -----------------------------------------------------

    Both the backups are successful. first backup is with compression and next one is normal backup, both existed in the same media set.

    but when I use like the below ,

    case II (like the QOTD order)

    -----------------------------------------------------

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak'

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak' with compression

    -----------------------------------------------------

    Then I am getting the error that both cannot co-exist

    My question is , if both cannot co-exist, first case also should fail , why the first case is successful and where as the second one is not ?

  • pmadhavapeddi22 (6/17/2014)


    Hi,

    I have tried taking the backup with the following t-sql commands

    case I

    -----------------------------------------------------

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak' with compression

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak'

    -----------------------------------------------------

    Both the backups are successful. first backup is with compression and next one is normal backup, both existed in the same media set.

    but when I use like the below ,

    case II (like the QOTD order)

    -----------------------------------------------------

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak'

    backup database XTEST_DB to disk

    ='c:\XTEST_DB.bak' with compression

    -----------------------------------------------------

    Then I am getting the error that both cannot co-exist

    My question is , if both cannot co-exist, second case also should fail , why the first case is successful and where as the second one is not ?

    Nice catch pmadhavapeddi22,

    Looks like it's SQL generosity. :hehe::hehe::hehe:

    ---------------------------------------------------
    "Thare are only 10 types of people in the world:
    Those who understand binary, and those who don't."

  • easy & straight forward.

    Thanks.

Viewing 5 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic. Login to reply