July 29, 2009 at 9:52 pm
The maximum system-generated unique value for a duplicate group was exceeded for index with partition
ID 422227540443136. Dropping and re-creating the index may resolve this; otherwise, use another clustering key.
I got this error while doing SELECT into from a huge table with 2.5 billion records using linked server... table had couple indexes as well both clustered and non-clustered... What should be a workaround to get that data? Thanks in advance for help.
July 30, 2009 at 7:38 am
SELECT INTO with a linked server and that much data is going to cause you a lot of headaches. Linked servers move the data being processed from the linked server to the local server then they do the processing. You're basically accessing the data twice.
To migrate this much data, you'd be better off with some sort of bulk load process using SSIS or bcp through sqlcmd or even the BULKINSERT command after exporting to a file.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
July 30, 2009 at 9:39 am
I agree with Grant.... BCP out to a file at the source, BULK INSERT from the file to the destination. If you use the "NATIVE" option of BCP, it'll be wicked fast. It's what "replication" uses.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply