I have created a procedure to import all records from a Microsoft Access database into SQL Server 2008 R2 Express server. The SQL server sits behind a WCF service with EntityFramework 4. My MS Access database contains ~500 000 records, however only ~100 000 is written. EntityFramework doesn’t throw any exception whatsoever, it just works and works, as if everything was OK. I thought this was an issue with SQL db not growing automatically since it said that “space left” was less than 1 MB. however I increased the DB size manually and the issue still remains. SQL Server ignores my writes?
I have created a procedure to import all records from a Microsoft Access database
Share
Why do I always have to find an answer myself, but only after I ask somebody else? … Turns out my assumption that MS access database primary key is unique, was bad. EF indeed makes 500k calls and oll of them succeed, but my logic includes code which checks for existence of PK from MS Access and if exists, updates it. So it most likely did 100k adds and 400k updates.