Error: The selected objects are identical or no objects ..

Angus NeilsonAngus Neilson Posts: 5
Hi
I have seen solutions for the same issue in SQL Compare but cannot seem to see where I can select the objects for deployment in SQL Data Compare .

this is the error (sensitive details redacted)
C:\source\branches\Data\Projects\ZZReference\DataCompare>SQLDataCompare /Argfile:xjsjrrsdkdLiveReport.xml
SQL Data Compare: activated, edition: professional, serial number: 507-001-205889-95C7
Red Gate SQL Data Compare Command Line Utility V10.4.8.62
==============================================================================
Copyright c Red Gate Software Ltd 1999-2013

Loading synchronization parameters from project file: C:\source\branches\Data\Projects\ZZReference\DataCompare\ZZReferenceDataLiveToZZReferenceDataDev_xjsjrrsdkd.sdc
OK
Comparing database DEVSERVER.ZZReferenceData2 with database DEVSERVER.ZZReferenceData...
Registering databases
Mapping
Comparing databases
Error: The selected objects are identical or no objects have been selected in the comparison.

I just want a report of the differences in the Databases for this script and in this case they are identical which is valid not an error
Angus
Tagged:

Comments

  • Eddie DEddie D Posts: 1,780 Rose Gold 5
    Thank you for your forum post.

    Need to see the contents of your /Argfile:xjsjrrsdkdLiveReport.xml to answer correctly.

    I suspect that you need to include the following switches in your xml argument file.

    /IncludeAdditional
    /IncludeMissing
    /IncludeDifferent
    Or user specified /Include[/list]

    The command line help for SQL Data Compare is available via this LINK.

    Many Thanks
    Eddie
    Eddie Davis
    Senior Product Support Engineer
    Redgate Software Ltd
    Email: support@red-gate.com
  • yes the include switch
    <include>Identical</include>
    
    in the Argfile sorted thanks. It is pretty obvious now that was what was missing :)
    Angus
  • Although it then mean it genrates the whole data set into the reports I realy only wanted to generate a report is ther a way of doing this ?
    Angus
  • Eddie DEddie D Posts: 1,780 Rose Gold 5
    Thank you for your replies.

    The reporting module of SQL Data Compare simply exports the comparison results into a set of CSV files dependent upon the 'Rows to Include' option.

    SQL Data Compare does not generate reports of the type (Interactive HTML, Simple HTML and XML) available in SQL Compare.

    If you would like SQL Data Compare to generate reports similar to the report types available in SQL Compare, I recommend that you comment and vote on this SQL Data Compare User Voice TOPIC.

    The User Voice Forum is the preferred method of submitting a feature request. The User Voice forum is actively monitored by the Product Managers and Development Teams. The more votes and comments a topic receives will increase its chances of being included in a future version of the product.

    Many Thanks
    Eddie
    Eddie Davis
    Senior Product Support Engineer
    Redgate Software Ltd
    Email: support@red-gate.com
  • Yes I would like that facility have added a post on User Voice
    Always having to generate a full difference is not ideal with larger data sets but as we have to include identical I assume there is no other way at the moment. The Summary csv is fine fro our needs but can seem to be generated on its own
    Angus
  • NicolsNicols Posts: 2 New member
    edited May 28, 2018 2:32PM
    Using both /Include:Identical and /Exclude:Identical switches with sqldatacompare command line prevents the execution to exit with error code 63 in case both databases are identical and also doesn't generate a .csv report for each identical object

    It only generates the "Results Summary.csv" report file and still an individual .csv file for each different object

    Example

    sqldatacompare /Include:Identical /Exclude:Identical /server1:.. /database1:.. ...
  • RichardLRichardL Posts: 417 Gold 4
    Hi @Nicols

    Thanks for your post. 

    I think it would be better if a new topic was created for this given how old the original post was. 
    Anyway, the 'exclude' switch will be applied as it overrides the 'include' one. Therefore, identical results will be missing from the reports. 

    Please remember that if you have a support contract you can always send us a ticket so that a dedicated product specialist can investigate your issues. 

    Kind regards

    Richard Lynch. 
    Customer Support
    Redgate Software
  • NicolsNicols Posts: 2 New member
    Hi @RichardL

    Thanks for your reply

    Actually I just wanted to share my findings for people with the same requirements

    Kr,

    Nicolas
  • RichardLRichardL Posts: 417 Gold 4
    Hi @Nicols

    Thanks for your reply. 

    Sure, no worries. 

    Thanks again for the post. 

    Richard. 
    Customer Support
    Redgate Software
Sign In or Register to comment.