June 14, 2014 at 6:20 am
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
June 16, 2014 at 6:35 am
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.
June 17, 2014 at 4:57 am
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 ?
June 17, 2014 at 6:03 am
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."
September 5, 2014 at 9:03 pm
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