dbTalk Databases Forums  

Violation of Primary constraint' cannot insert duplicate key in object

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Violation of Primary constraint' cannot insert duplicate key in object in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jay via SQLMonster.com
 
Posts: n/a

Default Violation of Primary constraint' cannot insert duplicate key in object - 05-28-2008 , 10:29 AM






I continue to get this message though there are no duplicate keys in the
table/s I am transferring into the new table I am creating using DTS. I
created a query to look to duplicate primary keys and did not get any
duplicates after running it. The DTS is a copy and has been modified (another
table has been added to the transfer). The copied DTS package has been
pointed to a test copy of the original database to make sure everything works
properly before moving the modification to production. To make sure I did not
make any changes that the original DTS has I re-directed the original the
test database and recieved the same error. Is there anything else I should be
looking at to correct this problem.

--
Jay

Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200805/1


Reply With Quote
  #2  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM






Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #3  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM



Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #4  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM



Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #5  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM



Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #6  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM



Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #7  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM



Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #8  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM



Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #9  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 05-29-2008 , 07:53 AM



Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J

Reply With Quote
  #10  
Old   
Jay via SQLMonster.com
 
Posts: n/a

Default Re: Violation of Primary constraint' cannot insert duplicate key inobject - 06-06-2008 , 11:33 AM



Sorry about this late reply but after your response I did go out and run the
query used by the dts and did not get any duplicates (see query below with
modification to look for duplicates)

SELECT evWLlegalintake.event_id

FROM evWLlegalintake

GROUP BY evWLlegalintake.event_id

HAVING (COUNT(*) > 1)

jhofmeyr (AT) googlemail (DOT) com wrote:
Quote:
Hi Jay,

You say "I created a query to look to duplicate primary keys ..." -
but did you run the exact query that DTS is using? If not, try that
and let us know the outcome.

Good luck!
J
--
Jay

Message posted via http://www.sqlmonster.com



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.