Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MohammedS
New Member

External table Creation in Fabric

Hi,

I wanted to create an external table in fabric/ADLS and file type is Parquet.

Not getting to find any article which is useful , all the sql query which is written is giving syntax error:

https://learn.microsoft.com/en-us/sql/t-sql/statements/create-external-table-as-select-transact-sql?...

 

please help on this

5 REPLIES 5
jovanpop-msft
Microsoft Employee
Microsoft Employee

Anonymous
Not applicable

Hi @MohammedS 

 

The statements you are referring to are in the SQL Server 2022 documentation. It's likely that Fabric doesn't support these statements. When you switch the documentation to the Fabric version, you will notice that these statements are not available.

vjingzhanmsft_0-1728972063163.png

Although Fabric provides many SQL Server features through Data warehouse and SQL analytics endpoint, it doesn't support all of the table features offered by SQL Server at this time. According to this documentation, External tables are not currently supported in Data warehouse and SQL analytics endpoint in Fabric.

 

So if you want to experience with external tables in Fabric, you can create them in a lakehouse via a notebook. You could refer to @frithjof_v 's reply. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

frithjof_v
Super User
Super User

I'm curious why you want to create an external table?

 

In general, the preferred format in Fabric is a managed delta table. This ensures the best interoperability across the Fabric platform. 

 

For reference, sample code to create an external table with delta format is shown below, however in general I would choose to use a managed delta table:

 

%%sql
CREATE TABLE FactInternetSales_ext (
CustomerID STRING, 
ProductID STRING, 
CurrencyID STRING,
SalesAmount STRING,
....
) USING DELTA OPTIONS (path 'Files/FactInternetSales_ext');

 

 

Source: Working with tables in Microsoft Fabric Lakehouse - Everything you need to know! - Data Mozart (data...

I am facing an identifier issue when using a shortcut table in Fabric for a Parquet file, which is preventing the table from being displayed. To resolve this, I want to create an external table, as it could potentially fix the problem.

I will definitely try the approach you shared, but please provide an alternative approach that can address this issue.

Thank you.

I'm curious why you got the identifier issue. Did the error message tell more?
(In case you share more details, please don't share any sensitive or secret information).

 

Regarding the external table with parquet as a source - this worked for me:

 

 

spark.sql("""
CREATE EXTERNAL TABLE IF NOT EXISTS table_name (
    column_name COLUMN_TYPE,
    another_column_name COLUMN_TYPE,
    another_column_name COLUMN_TYPE
)
STORED AS PARQUET
LOCATION 'Files/folder_name/another_folder_name'
""")

 

 

frithjof_v_1-1729412947037.png

 

Here is another one, very similar:

 

frithjof_v_3-1729413629584.png

 

 

 

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.