Red Gate forums :: View topic - Command line + /project switch + source control data source
Return to www.red-gate.com RSS Feed Available

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

Command line + /project switch + source control data source

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



Joined: 19 Jul 2013
Posts: 3

PostPosted: Fri Jul 19, 2013 6:09 pm    Post subject: Command line + /project switch + source control data source Reply with quote

Very simple case:

- I have a small testing database with just a few objects linked to the SVN repository.
- I can compare data between different revisions with GUI just fine
- But when I use this same .sdc file as a /project parameter when running sqldatacompare.exe

I get an error:
Error: Object reference not set to an instance of an object.

It is displayed after phases "Registering databases" and "Mapping".

This is happening when either of sources is set to "source control". Comparison between two physical databases works fine.

So my question is: Am I missing something obvious? Confused Has anyone else experienced this?

Thanks,
Jure
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6645

PostPosted: Mon Jul 22, 2013 11:21 am    Post subject: Reply with quote

Hi Jure,

We have indeed had several reports of this and logged it as bug SDC-1337. The problem seems to be that if you specify a repository from the "linked databases" portion of the source control dropdown, this is correctly saved into the project. If you select the repository using the URL, that is not saved into the project.

So the workaround for now is to run SQL Data Compare (UI) on the same PC as the one where SQL Source Control is installed, and refer to the database linked into SQL Source Control, then save the project and use that project in the command-line version.

I hope this helps!
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