Quantcast
Viewing all articles
Browse latest Browse all 15889

How to trick Data collector to insert data in a view?

We are using Data Collector to aggregate data from some SQL Server views and insert them into a table in the Management Data Warehouse DB. I would like to create an identity column in the destination table.
 The problem is that Data Collector will build the insert command with the identity column included in the list of columns.
 I tried to create a view on top of the destination table that doesn't include the identity columna d created the Data collection Set with the <OutputTable>myView</OutputTable>. The problem is that Data Collector checks if table myView exists and if it doesn't it tries to create it. In this case the creation of the table myView would fail as there is already a view called myView in custom_snapshots schema.
 Does anyone know a workaround for the above 2 issues? Either to be able to insert directly into a table that has an identity column (via the data collector) or to trick Data collector to be able to isnert into a view?
Thank you.

LLL


Viewing all articles
Browse latest Browse all 15889

Trending Articles