sql server - Using SSIS to map hard coded values as part of a one-to-many table migration in Visual Studio -
Using SQL Server 2005 and Visual Studio 2005, I am trying to create an SSIS package to merge several data from the table.
There are not many fields in the source table that do the destination tables, for example 'created' and 'created date' fields. I want to codify them with hard work as part of the package import process.
The problem does not know what to use for this mapping feature. As a starting point, a hard coded '1' and gatadat () will be acceptable for the created and manufactured date, respectively.
There is no clear support for the mapping of "default" value such as "GetDate ()" in the "Advanced" Destinator for Destination "Options dialog on the" Advanced and Output Properties "or" Column Mapping "tabs.
Any suggestions as a way to get it?
new columns (With or without static values) The SSIS method is to use the "derived column" conversion in your dataflow, source and destination .
This allows you to specify additional columns and their values using an additional expression. For the current date / time, use Getdate () as an expression And set the datatype to "Date (DT_DATE)." Specify the value for the hard code, the double quote in the expression (eg "1") and the relevant data type.
Comments
Post a Comment