Friday, March 9, 2012

How to import a text file with transac-sql

Hi allI am looking for examples of scripts that will help me doing these things:

- import a text file delimited with the character "*", representing a new month of data, for example data from march 2007

- create a new table with the structure of an existing one to import the data, for example Data_March_2007

- alter an existing totals table adding a new column for the new moth imported, adding a new colum for the month of March 2007.

This looks more like a job for DTS (SQL2000) or SSIS (SQL2005) than a pure TSQL job.

No comments:

Post a Comment