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
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8813 Visits: 7279
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
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2074 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-Dedicated
SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)

Group: General Forum Members
Points: 32042 Visits: 18551
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

Hany Helmy
Hany Helmy
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3017 Visits: 1117
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
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3017 Visits: 1117
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
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

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

+ 1 :-)
manik_anu
manik_anu
SSC-Addicted
SSC-Addicted (446 reputation)SSC-Addicted (446 reputation)SSC-Addicted (446 reputation)SSC-Addicted (446 reputation)SSC-Addicted (446 reputation)SSC-Addicted (446 reputation)SSC-Addicted (446 reputation)SSC-Addicted (446 reputation)

Group: General Forum Members
Points: 446 Visits: 312
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
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1514 Visits: 1870
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
Hall of Fame
Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)

Group: General Forum Members
Points: 3965 Visits: 2235
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