I have a "|" delimited file on AZURE storage blob and I am trying to create an external table to select from this data. I have followed step by step the instructions here: https://docs.microsoft.com/en-us/sql/t-sql/statements/create-external-table-transact-sql?view=sql-server-ver15 I believe all server settings are correct. I can actually create the table, but when I select from it (from the external tables section under tables) no data returns. Below is my select statement, I have trimmed the fields in the interest of saving space.
CREATE EXTERNAL TABLE [dbo].[customer]
(
[Id] [int] NOT NULL,
[CustomerName] [varchar](255) NULL,
[AccountType] [varchar](255) NULL,
[State] [varchar](255) NULL,
[DateExtracted] [date] NULL,
[tablename][varchar](50) NULL,
[databaseName] [varchar](50) NULL
)
WITH (LOCATION='customerfiles/',
DATA_SOURCE = AzureStorage,
FILE_FORMAT = TextFileFormat
);
Source in azure is as follows: tmmdevstorage - container > customerfiles > file1.txt , file2.txt I suspect i am getting something wrong referencing the location. I get no errors creating the external table and none when selecting from it, just no data. there are files containing the data in the blob storage.
Any ideas as to what i am missing?
