diff --git a/samples/features/sql-bulk-load/load-from-azure-blob-storage/LoadFromAzureBlobStorage.sql b/samples/features/sql-bulk-load/load-from-azure-blob-storage/LoadFromAzureBlobStorage.sql index e25a2630..4cdc6402 100644 --- a/samples/features/sql-bulk-load/load-from-azure-blob-storage/LoadFromAzureBlobStorage.sql +++ b/samples/features/sql-bulk-load/load-from-azure-blob-storage/LoadFromAzureBlobStorage.sql @@ -33,8 +33,8 @@ GO CREATE TABLE dbo.Product( Name nvarchar(50) NOT NULL, Color nvarchar(15) NULL, - Size nvarchar(5) NULL, Price money NOT NULL, + Size nvarchar(5) NULL, Quantity int NULL, Data nvarchar(4000) NULL, Tags nvarchar(4000) NULL, @@ -51,6 +51,15 @@ BULK INSERT Product FROM 'data/product.csv' WITH ( DATA_SOURCE = 'MyAzureBlobStorage', FORMAT='CSV', CODEPAGE = 65001, --UTF-8 encoding + FIRSTROW=2, + TABLOCK); + +-- INSERT file exported using bcp.exe into Product table +BULK INSERT Product +FROM 'data/product.bcp' +WITH ( DATA_SOURCE = 'MyAzureBlobStorage', + FORMATFILE='data/product.fmt', + FORMATFILE_DATA_SOURCE = 'MyAzureBlobStorage', TABLOCK); -- Read rows from product.dat file using format file and insert it into Product table