Answer the question
In order to leave comments, you need to log in
Why doesn't MSSQL read csv from Asterisk?
Good afternoon.
A csv file was generated from the asterisk. In mssql, I'm trying to write it to a temporary table as usual
CREATE TABLE #Ankets (card_number varchar(max),
name varchar(max),
phone varchar(max),
email varchar(max))
BULK INSERT #Ankets
FROM 'E:\calls-20170118.csv'
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = ',', --CSV field delimiter
ROWTERMINATOR = '\n', --Use to shift the control to next row
ERRORFILE = 'E:\qqqserror.csv',
TABLOCK
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question