I have CSV file which have a couple of data columns.
The CSV file looks like
field1: Test1 field2: Test2 field3: Test3, Test4, Test5>
This is the code for importing text or csv file into the database:
String SQL = "BULK INSERT [staging_db].[dbo].[TEST] FROM 'D:\\test.txt' WITH (FIELDTERMINATOR = ',',ROWTERMINATOR = '\n')";