I am using SQL Express 2008 R2...
I have used BULK INSERT before but never with a format file which after reading an example here of a non-xml file, I am not sure that what I want to do can be accomplished...
The CSV file looks like what Excel does when it saves to a CSV file and has data formatted as currency....
So I have a column of currency that conditionally decides if each datum shouold be double quote delimited if it does have a comma in it....
Something like this...
Actually I have multiples of these currency fields and they are not always at the end.
How should I go about getting this type of data to import? What I read about XML format files in BOL was not really that insightful at this level of detail.
Is this easy in SSIS?... In theory my database should be moving to a real SQL 2008 R2 server in the next few weeks.
My ultimate goal is to read this data into a temp so Ican pick up from there to run validation to verify that the other system's calculations reconcile to mine.
Any insight, relevant articles etc. would be greatly appreciated.
I have used BULK INSERT before but never with a format file which after reading an example here of a non-xml file, I am not sure that what I want to do can be accomplished...
The CSV file looks like what Excel does when it saves to a CSV file and has data formatted as currency....
So I have a column of currency that conditionally decides if each datum shouold be double quote delimited if it does have a comma in it....
Something like this...
Code:
1,2,$5.25,
3,4,"1,255.25"
Actually I have multiples of these currency fields and they are not always at the end.
How should I go about getting this type of data to import? What I read about XML format files in BOL was not really that insightful at this level of detail.
Is this easy in SSIS?... In theory my database should be moving to a real SQL 2008 R2 server in the next few weeks.
My ultimate goal is to read this data into a temp so Ican pick up from there to run validation to verify that the other system's calculations reconcile to mine.
Any insight, relevant articles etc. would be greatly appreciated.