Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Backups
»
backup background process
13 posts, Page 1 of 2
1
2
»»
backup background process
Rate Topic
Display Mode
Topic Options
Author
Message
atulyan.aries
atulyan.aries
Posted Thursday, October 11, 2012 5:09 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, May 19, 2013 10:56 PM
Points: 9,
Visits: 58
when backup is taken can anyone tell me as to what exactly happens in the background
Post #1371360
GilaMonster
GilaMonster
Posted Thursday, October 11, 2012 5:21 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:12 PM
Points: 38,062,
Visits: 30,355
Why do you want to know? What problem are you investigating?
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1371371
atulyan.aries
atulyan.aries
Posted Thursday, October 11, 2012 6:42 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, May 19, 2013 10:56 PM
Points: 9,
Visits: 58
newbie wanting to understand sql
Post #1371425
GilaMonster
GilaMonster
Posted Thursday, October 11, 2012 8:29 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:12 PM
Points: 38,062,
Visits: 30,355
Well, at a high level, all used data pages read from the data file and written into the backup file. That's the core. It's a bit of a simplification, but good enough.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1371539
Yuri55
Yuri55
Posted Sunday, October 14, 2012 4:05 PM
SSC-Addicted
Group: General Forum Members
Last Login: Wednesday, May 29, 2013 7:29 PM
Points: 408,
Visits: 1,447
What means "used pages"? Can you please clarify. Thanks
Post #1372543
Bhuvnesh
Bhuvnesh
Posted Monday, October 15, 2012 12:05 AM
SSCrazy
Group: General Forum Members
Last Login: Thursday, June 13, 2013 7:03 AM
Points: 2,562,
Visits: 3,453
Yuri55 (10/14/2012)
What means "used pages"? Can you please clarify. Thanks
used means the pages which contain data .
refer this link
http://msdn.microsoft.com/en-us/library/ms175477(v=sql.90).aspx
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1372564
Yuri55
Yuri55
Posted Monday, October 15, 2012 9:56 AM
SSC-Addicted
Group: General Forum Members
Last Login: Wednesday, May 29, 2013 7:29 PM
Points: 408,
Visits: 1,447
Bhuvnesh (10/15/2012)
Yuri55 (10/14/2012)
What means "used pages"? Can you please clarify. Thanks
used means the pages which contain data .
refer this link
http://msdn.microsoft.com/en-us/library/ms175477(v=sql.90).aspx
Make sense, thanks
What does not make sense though (probably I am missing something
)- let say you backup DB1 with 50% Available free space (from Shrink DB task you can see this number). Then you restore DB2 from this backup and I guess (saw it many times) that DB1 and DB2 have same size (not 50% less I mean). Why is this- because pages were not completely free on DB1 and therefore were backed up? Thanks
Post #1372794
GilaMonster
GilaMonster
Posted Monday, October 15, 2012 10:38 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:12 PM
Points: 38,062,
Visits: 30,355
Because restoring a backup always recreates the database exactly as it was at the time the backup was taken.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1372823
Yuri55
Yuri55
Posted Monday, October 15, 2012 2:28 PM
SSC-Addicted
Group: General Forum Members
Last Login: Wednesday, May 29, 2013 7:29 PM
Points: 408,
Visits: 1,447
Sorry Gail but IMO it does not sound logical- if during backup only used (with data) pages are written to backup file then restored DB should have only such pages (i.e. with data only and no empty pages), i.e. can be different from original one? Or am I missing somethng? Thanks
Post #1372939
GilaMonster
GilaMonster
Posted Monday, October 15, 2012 3:00 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:12 PM
Points: 38,062,
Visits: 30,355
The backup file (the .bak) contains only the pages (actually extents) that are allocated to objects. There's no point in backing up empty space.
The restored database must however be exactly the same as the database that was backed up. If the source database had 50% free space, so will the restored DB. How would SQL tell cases where that 50% free space is desired and required from cases where is is not? It can't just assume that the free space can be removed (and, infact doing so could be a huge problem, it would essentially be doing a shrink after every restore, horrible)
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1372952
« Prev Topic
|
Next Topic »
13 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.