An item with the same key has already been added.

A SQL Server Management Studio add-in to source control your database in Subversion or Team Foundation Server.

Moderators: Chris Auckland, David Atkinson, sherr, PhilScrace

An item with the same key has already been added.

Postby hyperdata » Mon Apr 04, 2011 4:35 pm

Getting this messge below, when we try to connect to a database.
"An item with the same key has already been added."

How can we correct/fix/workaround this?
hyperdata
 
Posts: 1
Joined: Mon Apr 04, 2011 4:32 pm

Postby james.billings » Mon Apr 04, 2011 6:44 pm

A common cause for this is if you have more than one file referencing the same object. The extra details on the error may well indicate which object is the cause.
Did you manually amend any of the files in your source control repository? Such as making a copy of some of the files for backup purposes?

Another potential is if you have objects named the same apart from their case (upper/lower etc) and you're not using a case sensitive collation.

Hope that helps - contact us directly at support if you get stuck!
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.


Return to SQL Source Control 2

Who is online

Users browsing this forum: No registered users and 0 guests

cron