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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
DennesTorres
Impactful Individual
Impactful Individual

Copy INTO from authenticated source

Hi,

Is there a way to use the COPY INTO SQL statement on a Data Warehouse when the storage source requires authentication?

I imagine an SAS key on the query string would work, but is this the only way? 

Kind Regards,

 

Dennes

1 ACCEPTED SOLUTION

@DennesTorres We don't support COPY from OneLake quite yet. If your files are in the Lakehouse, are they delta tables? You can use CTAS from the Lakehouse, or even INSERT INTO ... SELECT. There are some examples in the "Ingesting data from tables on different warehouses and lakehouses" section of this article: Ingest data into your Warehouse using Transact-SQL - Microsoft Fabric | Microsoft Learn

 

Regards

Geetha

 

View solution in original post

3 REPLIES 3
GeethaT-MSFT
Microsoft Employee
Microsoft Employee

Hi @DennesTorres Thanks for posting your question in Microsoft Fabric Community

you can use a SAS token or a storage account key with Fabric. If you need an example, you can find it here:COPY INTO (Transact-SQL) - Azure Synapse Analytics and Microsoft Fabric | Microsoft Learn

GeethaTMSFT_0-1691538442026.png

Regards

Geetha


Thank you, Geetha, this helps if the source is an external storage, such as an azure data lake storage.

If the source is the "Files" area from a lakehouse, is it possible to retrieve an SAS key for the Files area, or is it not available yet ?


Kind Regards,

Dennes

@DennesTorres We don't support COPY from OneLake quite yet. If your files are in the Lakehouse, are they delta tables? You can use CTAS from the Lakehouse, or even INSERT INTO ... SELECT. There are some examples in the "Ingesting data from tables on different warehouses and lakehouses" section of this article: Ingest data into your Warehouse using Transact-SQL - Microsoft Fabric | Microsoft Learn

 

Regards

Geetha

 

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.