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

Converting a string to a date

$
0
0

Hi, This may be a very easy one, apologies if it is but I cant get it working

I have a text file that is comma delimted and the after the last comma there is a date in the following format YYYYMMDD so for example 19981026.  I have an ssis package that imports all the data from my text file but without the date as its a new column.  I am importing it into SQL server 2008. 

I have tried multiple ways to get it working but it always errors when running.  I am using an sql job to execute the package.

I have a few questions

1. what should the type be in SQL server, datetime or smalldatetime?

2. What should be the datatype be in the flat file connection manager?

3. Do I need to use a data conversion tool?

I though it would be easier than this but 2 hours in and I am stuck.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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