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
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
July 2025 community update carousel

Fabric Community Update - July 2025

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