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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
KerenLopez
Frequent Visitor

Help recovering closed KQL query tabs in a Queryset

Hi everyone,

My team and I are working with a KQL database in Microsoft Fabric, specifically querying data through a queryset. Unfortunately, I accidentally closed an important tab that contained KQL significant queries to our development process.

I've been checking the Fabric documentation, but havenโ€™t found anything helpful regarding recovering a closed tab or previously written queries. Does anyone know if there's a way to recover them?

Any help would be greatly appreciated!

Thanks in advance.

3 ACCEPTED SOLUTIONS
nilendraFabric
Super User
Super User

hi @KerenLopez 

 

All queries executed against a Kusto database are logged in the query history. You can access this by running the following KQL command in your Fabric environment:

 

.show queries | where StartedOn > ago(2h)

Adjust the time window as needed to filter for your recent queries.
โ€ข This allows you to recover the actual query text, even if the tab itself is lost

 

View solution in original post

Hi @nilendraFabric
Thanks for your reply!

Just to confirm, does that mean that any part of the code that was written but not executed is permanently lost? If so, that's quite concerning.

Honestly, Iโ€™m surprised that Fabric doesnโ€™t offer any kind of auto-save or version history for queries within a queryset. Considering how easy it is to accidentally close a tab or lose progress, it feels like an important feature that should be built in by default.

View solution in original post

you are correct here

 

Fabric does not auto-save queries in progress unless explicitly saved by the user. This applies to both executed and unexecuted queries.
โ€ข The โ€œQueries auto-saveโ€ feature mentioned in Kusto Explorer does not exist in Fabricโ€™s KQL queryset interface.

View solution in original post

3 REPLIES 3
nilendraFabric
Super User
Super User

hi @KerenLopez 

 

All queries executed against a Kusto database are logged in the query history. You can access this by running the following KQL command in your Fabric environment:

 

.show queries | where StartedOn > ago(2h)

Adjust the time window as needed to filter for your recent queries.
โ€ข This allows you to recover the actual query text, even if the tab itself is lost

 

Hi @nilendraFabric
Thanks for your reply!

Just to confirm, does that mean that any part of the code that was written but not executed is permanently lost? If so, that's quite concerning.

Honestly, Iโ€™m surprised that Fabric doesnโ€™t offer any kind of auto-save or version history for queries within a queryset. Considering how easy it is to accidentally close a tab or lose progress, it feels like an important feature that should be built in by default.

you are correct here

 

Fabric does not auto-save queries in progress unless explicitly saved by the user. This applies to both executed and unexecuted queries.
โ€ข The โ€œQueries auto-saveโ€ feature mentioned in Kusto Explorer does not exist in Fabricโ€™s KQL queryset interface.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Weeks

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (25)