Forum Discussion

jochenj's avatar
jochenj
Advocate III
1 year ago
Solved

Best Practice for Lakehouse Table & View Deployments?

i'm looking for best-practices how to track and deploy changes on LH-Managed Tables and LH-SQL-Views between workspaces.  How do you handle this task dynamically and with less-maintenance efforts? ...
  • v-menakakota's avatar
    1 year ago

    Hi jochenj ,

    Thanks for reaching out to the Microsoft fabric community forum. 

    Cosider this as a workaround and try it once. 
    Create a notebook in your development workspace that automatically extracts metadata for all:

    • Lakehouse tables (Delta format)
    • SQL views (from the Lakehouse SQL endpoint)
    • semPy library use get_lakehouse_tables() to retrieve table definitions
    • SQL query SELECT * FROM INFORMATION_SCHEMA.VIEWS to get view definitions

    You can serialize the output (e.g., as .json or .sql files) and store them in the Files section of your Lakehouse or in a dedicated folder within OneLake. This makes the metadata portable and ready for deployment to other environments.

    If I misunderstand your needs or you still have problems on it, please feel free to let us know.   

    Best Regards, 
    Menaka. 
    Community Support Team