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 2008
»
SQL Server 2008 Administration
»
Internal tables, inserted and deleted tables,...
Internal tables, inserted and deleted tables, change tracking
Rate Topic
Display Mode
Topic Options
Author
Message
Golfer22
Golfer22
Posted Tuesday, January 01, 2013 9:41 PM
SSC Journeyman
Group: General Forum Members
Last Login: Saturday, February 02, 2013 11:13 PM
Points: 82,
Visits: 76
I understand that change tracking writes changes to "internal tables." Are these in the database that the change tracking is occuring on?
Do internal tables include inserted and deleted tables (e.g., those that are involved with DML triggers)?
Post #1401649
SatishAyyar
SatishAyyar
Posted Tuesday, January 01, 2013 10:20 PM
SSC-Addicted
Group: General Forum Members
Last Login: Saturday, May 18, 2013 4:20 PM
Points: 479,
Visits: 406
I am thinking they will be in TEMPDB
Post #1401652
Bhuvnesh
Bhuvnesh
Posted Tuesday, January 01, 2013 11:39 PM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
Golfer22 (1/1/2013)
I understand that change tracking writes changes to "internal tables." Are these in the database that the change tracking is occuring on?
Do internal tables include inserted and deleted tables (e.g., those that are involved with DML triggers)?
it seems like homework ;) , anyways here is the link which can give you bright picture of change tracking
http://www.mssqltips.com/sqlservertip/1819/using-change-tracking-in-sql-server-2008/
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1401665
Bhuvnesh
Bhuvnesh
Posted Tuesday, January 01, 2013 11:40 PM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
SatishAyyar (1/1/2013)
I am thinking they will be in TEMPDB
i dont think , it should be in same database.
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1401667
opc.three
opc.three
Posted Wednesday, January 02, 2013 10:38 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 12:39 PM
Points: 6,722,
Visits: 11,765
Golfer22 (1/1/2013)
I understand that change tracking writes changes to "internal tables." Are these in the database that the change tracking is occuring on?
The internal change tracking tables reside in the database where changes are being tracked, not in tempdb. This is critical for disaster recovery and high-availability. Change tracking information is included in the backup file when a database is backed up, and when a backup file is restored.
Do internal tables include inserted and deleted tables (e.g., those that are involved with DML triggers)?
No, INSERTED and DELETED are virtual, read-only tables that are only present for the duration of a transaction, and are only accessible inside the trigger code. Changes are tracked for user-tables.
Change Tracking (SQL Server 2008 R2)
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1401961
« Prev Topic
|
Next Topic »
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.