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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
NotebookEnjoyer
Advocate II
Advocate II

Viewing/Editing of SQL Views

Hello everyone,

if I create a SQL view in my warehouse, is there an option to review it's formula (from the view itself, not because I kept it somewhere else)? And in the same vein, can I edit it? All that I found so far indicates that both isn't possible, but I want to be sure, because it seems so impractical.

Thanks for any help!

1 ACCEPTED SOLUTION
stoic-harsh
Resolver III
Resolver III

Hi @NotebookEnjoyer,

 

You can use Download SQL database project to export a compressed copy of your entire Warehouse or Lakehouse and access all view definitions.

 

In addition to the solution suggested by @rizalard0684, another quick UI-based option is to use Query Activity (see screenshot). It shows all recently executed queries along with imp details like duration, run count, and success/failure status.

 

stoicharsh_0-1768739547571.png

 

For scalability, I would recommend creating views via Stored Procedures (editing views would be much simpler, this way). Think of them as warehouse-specific pipelines. You can even manage multiple view definitions within a single stored procedure.

View solution in original post

5 REPLIES 5
stoic-harsh
Resolver III
Resolver III

Hi @NotebookEnjoyer,

 

You can use Download SQL database project to export a compressed copy of your entire Warehouse or Lakehouse and access all view definitions.

 

In addition to the solution suggested by @rizalard0684, another quick UI-based option is to use Query Activity (see screenshot). It shows all recently executed queries along with imp details like duration, run count, and success/failure status.

 

stoicharsh_0-1768739547571.png

 

For scalability, I would recommend creating views via Stored Procedures (editing views would be much simpler, this way). Think of them as warehouse-specific pipelines. You can even manage multiple view definitions within a single stored procedure.

rizalard0684
Advocate I
Advocate I

In short @NotebookEnjoyer you are correct.

 

In Fabric Warehouse, there is no UI option to view or edit a SQL view’s definition directly from the object.

You can see the SQL definition only via T‑SQL (for example using sys.sql_modules or sp_helptext), and you can edit it only by running a new CREATE OR ALTER VIEW statement in the SQL editor.

There is no setting or permission you’re missing, I believe it’s a current platform limitation.

 

If this helped, please consider giving a Kudos or Mark my post as a solution!

smeetsh
Continued Contributor
Continued Contributor

This is the easiest way to do it, it is very much like the sql function alter view, here it is just combined.

Cheers

Hans

(If my solution was usefull, please give it a kudo, and mark it as a solution)
v-achippa
Community Support
Community Support

Hi @NotebookEnjoyer,

 

Thank you for reaching out to Microsoft Fabric Community.

 

This is expected behaviour in the fabric warehouse. There is no UI option to view or edit an existing sql view definition. Views cannot be edited directly they must be recreated using CREATE OR ALTER VIEW. This is a current product limitation.

If this capability is important, please consider submitting your detailed feedback and ideas through Microsoft's official feedback channels. Feedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.

Fabric Ideas - Microsoft Fabric Community

 

Thanks and regards,

Anjan Kumar Chippa

Hi @NotebookEnjoyer,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if you have raised this in the ideas forum?

 

Thanks and regards,

Anjan Kumar Chippa

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.