I am moving on to using SqlBulkCopy to work with large inserts in some databases. This has led to big performance improvements for a single db.
However, the other target table db is a view comprising 2 tables. Using a single table code results in a "System.Data.SqlClient.SqlException: view or function" dbo.vwParameter "is not updatable because the modification affects multiple base tables." You can smooth the presentation into one table without causing many complications, although this is undesirable because it saves good disk space.
So is it possible to use SqlBulkCopy in this context, and am I just doing something wrong? Or, if not, what could be a good job that preserves the presentation for reading?
source
share