January 3, 2011 at 7:45 am
I have a database in which we partition a table using a calendar id which is an int referencing a date in a calendar table. Each year, I add another filegroup and multiple files to hold the new year's data and split the partition.
Here is my partition function:
ALTER PARTITION Function SDW_FactCashierEvents_Partition() Split Range (1462)
My problem is that I am receiving the following error message:
Cannot insert duplicate key row in object 'dbo.FactCashierEvents' with unique index 'IX_FactCashierEvents_LocationID'.
The statement has been terminated.
This index is NOT a unique index. It is a non-unique, nonclustered index. I've already dropped and re-created the index.
Has anyone else had this issue or can offer a suggestion?
January 3, 2011 at 11:52 am
A bit of a shot in the dark here but it might be worth it to.
sp_recompile on your table
and
dbcc checkcatalog
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply