I am trying to copy from azure data lake gen2 to table in azure synapse warehouse using local ssms. The COPY INTO
statement is neither throwing any errors and nor dumping the data. I am copying the pandas df from centos server to azure data lake gen2 using sep=',', encoding='utf-8'
. Here is the COPY statement that I am using.
COPY INTO dbo.SALES_CUTOMER_D
FROM 'https://acoount_name/test-file-system/SALES_CUSTOMER_D_0.csv'
WITH (
FILE_TYPE = 'csv',
CREDENTIAL=(IDENTITY= 'Storage Account Key', SECRET=''),
FIELDQUOTE = '"',
FIELDTERMINATOR=',',
ROWTERMINATOR='\r\n',
ENCODING = 'UTF8',
FIRSTROW = 2
)
FIELDQUOTE
,FIELDTERMINATOR
,ROWTERMINATOR
, you're using default values. It could have an effect. Beyond that you'll have to put the contents of the csv file and DDL forSALES_CUTOMER_D
if you want someone to help you more. Also a good idea to specify the list of columns (COPY INTO dbo.SALES_CUTOMER_D (col1, col2, ...) FROM ...
). – Kashyap