|
I am trying to create a package to load latest csv file into the sql server and every time it should create a new table based on csv file.
(comments are locked)
|
|
Hey thanks for the suggestion. I applied a different approach to that. 1) I used a script task to identify the latest csv file and put that file name into a variable based on code provided on the following link: http://stackoverflow.com/questions/8831060/import-most-recent-csv-file-to-sql-server-in-ssis 2) I used a second script task to to create a table for every csv file based on code provided on the following link: http://sqlage.blogspot.com/2011/02/create-table-for-each-flate-file-and.html Now I need to call the variable using connection string to get the latest csv file. how can I call that variable? Hey, I found a solution to it. Using a file management tool which keeps only one file at a time in a folder and using the code on the second link I can create a table.
Aug 16 '12 at 08:00 PM
hope
(comments are locked)
|
|
can you not try something like:
(comments are locked)
|

