SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Change Tracking in SQL Server 2008
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

anupamk
Starting Member

India
7 Posts

Posted - 03/29/2013 :  15:06:14  Show Profile  Reply with Quote
Hi,

When i Inserted few record in a table where CHange Tracking is enable, has generated all different Version Number for column SYS_CHANGE_VERSION and same for column SYS_CHANGE_CREATION_VERSION(For Insert SQL).

Whereas in another table(In another DB), the 4,000,000 records only 50 distinct SYS_CHANGE_VERSION generated. So it was like a group of records have same version number.

I was under impression that new version will be created each time if there is change is happening(insert,update,delete) in a table.

Please guide..

Anupam

TG
Flowing Fount of Yak Knowledge

USA
6062 Posts

Posted - 03/29/2013 :  15:25:41  Show Profile  Reply with Quote
I believe Change Tracking is transaction based. Is it possible that other table was "loaded" with a one (or a several) transactions?

I suspect that if you modify say 3 rows in the first table you mentioned those rows all get the same version.

EDIT:
of course for that test you would need to modify all 3 rows in the same statement or the same explicit transaction

Be One with the Optimizer
TG

Edited by - TG on 03/29/2013 15:32:12
Go to Top of Page

anupamk
Starting Member

India
7 Posts

Posted - 03/31/2013 :  08:47:19  Show Profile  Reply with Quote
Hi,

For second table where same version is created for group of record:
Records are getting inserted voa a tool. all are separate Insert statement. lets say if 4,000,000 records than 4,000,000 individual insert statement. The data oad mode is Normal.

Thanks,
Anupam
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.56 seconds. Powered By: Snitz Forums 2000