Posted by Erland Sommarskog on 03/10/06 00:46
Dan Guzman (guzmanda@nospam-online.sbcglobal.net) writes:
>> BEGIN TRANSACTION
>> DELETE * FROM Whatever
>> BULK INSERT INTO Whatever...(etc)
>> COMMIT TRANSACTION
>
> These statements run consecutively and not in parallel. You shouldn't
> get a PK violation unless the file contains duplicate data so it looks
> to me like you found a bug. I can repro this under SQL 2000 but no
> problem under SQL 2005.
Would mind sharing that repro? It sounds like a pretty wild bug to me;
one of the kind that make you ask "how do they do it?"
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|