Red Gate forums :: View topic - SQL Data Compare - Exclude Rowguid From Comparison
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Data Compare 10
SQL Data Compare 10 forum

SQL Data Compare - Exclude Rowguid From Comparison

Search in SQL Data Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
lc6529



Joined: 18 Apr 2007
Posts: 20

PostPosted: Mon Jun 03, 2013 5:58 pm    Post subject: SQL Data Compare - Exclude Rowguid From Comparison Reply with quote

Getting Closer.

I have setup an XML Argument file to compare two tables on two different servers and put the output of the comparison into a log file.

The tables are identical except for 2 things.

#1: The table on server 1 has a job run against it that will delete all data from the table and repopulate it.

#2: The table on server 2 is replicated out using MERGE replication to servers in different countries.

The table on server 2 would have issues if it were blank, so my XML simply adds new records or updates existing records. All was going fine in testing until we added replication to the mix. Now SQLDataCompare is not working due to the ROWGUID column.

I tried using <excludecolumns>rowguid</excludecolumns>

But that did not work

How do I exclude this column in my comparison?

Here is a sample of my XML. Is this correct?

<!-- Compare These Tables -->
<include>Table:\[Critical_Tables\]</include>
<!-- Exclude This Column -->
<excludecolumns>rowguid</excludecolumns>
<!-- Do These Comparisons -->
<include>Identical</include>
<include>Missing</include>
<include>Different</include>
<synchronize/>

Update:

I have gotten further, I have found out that this syntax works:

<excludecolumns>\[Critical_Tables\]:rowguid</excludecolumns>

However I get "object not set to a reference" when I run my program from the command line using the XML file.

I should point out that rowguid is ONLY in the table on the 2nd server and not in the table on the 1st server.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group