Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Using GetDate() in an SSIS expression

$
0
0
I have an ETL package that takes data from an Excel spreadsheet and loads it into a SQL table.  It is working fine and now I want to add a column to the table that stores the date the record was created.  I have added a datetime field, CreateDate, to the table and have added a derived column to my package.  The expression for the new column is: (DT_DBTIMESTAMP)GETDATE()  When I run the package, the CreateDate field shows as NULL.  Any thoughts on this one, please?

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>