SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Compressed Backups


Compressed Backups

Author
Message
Stewart "Arturius" Campbell
Stewart "Arturius" Campbell
SSC-Dedicated
SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)

Group: General Forum Members
Points: 35314 Visits: 7700
Almost missed the critical phrase "in a backup set"
Good question, Steve, thanks

____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Raghavendra Mudugal
Raghavendra Mudugal
SSCertifiable
SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)

Group: General Forum Members
Points: 5526 Visits: 2958
TomThomson (6/13/2014)
Koen Verbeeck (6/13/2014)
An easy question on Friday the 13th, who knew :-)

If it's easy, there must be a lot of not very bright and knowledgable people using SQL Server central. 61 out of 152 got it wrong so far. If people who just guess are split evenly between those who say "of course it works, why on earth wouldn't it" and those who say "there must be some reason for asking this, so probably it doesn't work" and there are at most 20% who think they know but are wrong (which surely would be true for an "easy" question) that means that 31 of the people who got it right were guessing, so only 60 out of 152 knew or successully looked up the answer, which is a pretty low proportion (less than 40%) for an"easy" question.

Anyway, it's a good question because at least the 40% with wrong answers may learn from it, and maybe some of the people who got the right answer by guessing will in future actually know the answer.


+1

well, more than one way to learn.... either way or anyhow or somehow or whatever...it is helping all the people around the world to gain the knowledge.

ww; Raghu
--
The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)SSC Guru (143K reputation)

Group: General Forum Members
Points: 143937 Visits: 18651
TomThomson (6/13/2014)
Koen Verbeeck (6/13/2014)
An easy question on Friday the 13th, who knew :-)

If it's easy, there must be a lot of not very bright and knowledgable people using SQL Server central. 61 out of 152 got it wrong so far. If people who just guess are split evenly between those who say "of course it works, why on earth wouldn't it" and those who say "there must be some reason for asking this, so probably it doesn't work" and there are at most 20% who think they know but are wrong (which surely would be true for an "easy" question) that means that 31 of the people who got it right were guessing, so only 60 out of 152 knew or successully looked up the answer, which is a pretty low proportion (less than 40%) for an"easy" question.

Anyway, it's a good question because at least the 40% with wrong answers may learn from it, and maybe some of the people who got the right answer by guessing will in future actually know the answer.


Well it was qualified as being easy for "Friday the 13th."

It could have been a really bloody and difficult question Wink

Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Learn Extended Events

Hany Helmy
Hany Helmy
SSCertifiable
SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)

Group: General Forum Members
Points: 7241 Visits: 1122
TomThomson (6/13/2014)
Koen Verbeeck (6/13/2014)
An easy question on Friday the 13th, who knew :-)

Anyway, it's a good question because at least the 40% with wrong answers may learn from it, and maybe some of the people who got the right answer by guessing will in future actually know the answer.

Now it`s 37% :-)
Hany Helmy
Hany Helmy
SSCertifiable
SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)

Group: General Forum Members
Points: 7241 Visits: 1122
Raghavendra Mudugal (6/13/2014)
Thank you for the post, SJ, good one, got it right, as I tried this before and was sure of the choice. :-)

Same here :-)
Hany Helmy
Hany Helmy
SSCertifiable
SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)

Group: General Forum Members
Points: 7241 Visits: 1122
Stewart "Arturius" Campbell (6/13/2014)
Almost missed the critical phrase "in a backup set"
Good question, Steve, thanks

+ 1 :-)
manik_anu
manik_anu
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1115 Visits: 337
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.
pmadhavapeddi22
pmadhavapeddi22
Hall of Fame
Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)

Group: General Forum Members
Points: 3060 Visits: 1874
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 ?
free_mascot
free_mascot
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15651 Visits: 2250
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. HeheHeheHehe

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


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search