General discussion

Locked

SQL 2005 DTS

By mg_roberts ·
I've tried everything I can think of. Can't get DTS to work in SQL Server 2005. I get this error every freakin time!

'Violation of PRIMARY KEY constraint 'PK_Alerts'. Cannot insert duplicate key in object 'dbo.Alerts'.

Sometimes it's a foriegn key. I can't figure this out. I try to have DTS drop the tables and recreate but it still fails with same error.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Thats a table issue, not a DTS issue

by Nick.McDermaid In reply to SQL 2005 DTS

Unless the error is misleading, that will happen whether you use DTS or SSIS (SQL 2005 version of DTS)

The problem is actually that you have defined that one or more columns are unique, but the data you are importing into it is NOT unique.

You could drop the constraint, but then I'm sure that constrinat is there for a reason.

Collapse -

How to drop the table?

by mg_roberts In reply to Thats a table issue, not ...

Yea you're right. But if i choose to have it drop the table at the destination and recreate, it shouldn't have any problems. but i still get the same error.

Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums