Red Gate forums :: View topic - Error when linking a database to Subversion
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 2
SQL Source Control 2 forum

Error when linking a database to Subversion

Search in SQL Source Control 2 forum
Post new topic   Reply to topic
Jump to:  
Author Message
mvargas



Joined: 08 Aug 2011
Posts: 2

PostPosted: Mon Aug 08, 2011 4:58 pm    Post subject: Error when linking a database to Subversion Reply with quote

I get the error: An item with the same key has already been added. I was linking my database using a Shared database Development Model as usual.

I removed the SVN folder and created a new one for this database. After linking to the new folder, tried commiting changes but error comes up.

Now I'm not able to link this database to my Source Control.

My installed version is 2.2.1.23

Any ideas on how to solve this issue?
Back to top
View user's profile Send private message
mvargas



Joined: 08 Aug 2011
Posts: 2

PostPosted: Tue Aug 09, 2011 5:00 pm    Post subject: Reply with quote

I was able to fix my issue! By using SQL Compare I found a suspicious "duplicate" object, a table with a name starting with blank space like this [ table_name] and my regular table [table_name].
As soon as I removed the one starting with blank space I tried linking the database to Source Control and then committed my changes successfully. Again I'm using Subversion and probably the file name for my table object was really duplicated at the folder level.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1121
Location: My desk.

PostPosted: Wed Aug 10, 2011 5:11 pm    Post subject: Reply with quote

Thanks for posting back here with your findings - a couple of other customers have reported similar errors directly to us recently, so it gives us another thing to check over with them!
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