Bulk insert a semi-structured file (SQL server) -


I am trying to import a file into a SQL Server table, although this is not a general structure file A predefined column; The number of columns is not fixed from one file to another and even from one line to another.

Field Terminator '|' Therefore, for the first line you will have 3 columns (3 pipes delimiter) and the next line will be on the 10th column. (10 pipe delimiter)

Is it possible to use this type of files using bulk function in SQL Server?

Thank you.

Insert a column in bulk of a template table. Then filter the rows based on the number of Terminator (|).

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -