Fast Insert Relational(normalized) Data Tables Into Sql Server 2008 Database
I'm trying to find a better and faster way to insert pretty massive amount of data(~50K rows) than the Linq that I'm using now. The data I'm trying to write to a local db is in a l
Solution 1:
I would still use SqlBulkCopy to quickly copy your data from the external file into a staging table that has the same (flat) structure as the file (you'll need to create that table ahead of time)
Once it's loaded, you can split up the data across multiple tables using e.g. a stored procedure or something - should be pretty fast since everything's on the server already.
Post a Comment for "Fast Insert Relational(normalized) Data Tables Into Sql Server 2008 Database"