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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -