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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AnamikaMish
New Member

Issues Running SP to Load GTT and Select dta for Lakehouse Table in Same Session Using Copy activity

I’m working on a procedure that loads data into a global temporary table in Oracle. While the loading works, I’m struggling to retrieve the data from the temp table within the same session for a copy activity to load into a lakehouse table.

Any insights on how to effectively select this data immediately after loading? Thanks for your help

1 ACCEPTED SOLUTION
FabianSchut
Solution Sage
Solution Sage

Hi, the problem looks similar to this issue: https://community.fabric.microsoft.com/t5/Data-Pipeline/How-to-run-Multiple-SQL-commands-in-Fabric-P.... I suggested there to use a function that returns a table instead of a stored procedure. With this method, you are able to run your code and retrieve a table with only one call. For Oracle that may look something like this: https://stackoverflow.com/questions/2829880/create-an-oracle-function-that-returns-a-table#answer-28...

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @AnamikaMish ,

Any update on this? Did these suggestions help for your scenario? If that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
v-shex-msft
Community Support
Community Support

Hi @AnamikaMish,

Fabric data pipeline is reference from azure synapse features, so you can take a look at azure synapse temporary table usage limitations and T-sql limitations:

Use temporary tables in Synapse SQL - Azure Synapse Analytics | Microsoft Learn

T-SQL surface area - Microsoft Fabric | Microsoft Learn

In addition, you can also take a look the data pipeline usages if helps:

Data Factory limitations overview - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
FabianSchut
Solution Sage
Solution Sage

Hi, the problem looks similar to this issue: https://community.fabric.microsoft.com/t5/Data-Pipeline/How-to-run-Multiple-SQL-commands-in-Fabric-P.... I suggested there to use a function that returns a table instead of a stored procedure. With this method, you are able to run your code and retrieve a table with only one call. For Oracle that may look something like this: https://stackoverflow.com/questions/2829880/create-an-oracle-function-that-returns-a-table#answer-28...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.