Forum Discussion

aditridant's avatar
aditridant
Frequent Visitor
1 year ago
Solved

How to Handle Complex Stored Procedures with DML and Cross-References in Microsoft Fabric?

I'm working on a solution in Microsoft Fabric where I need to accomplish two main goals: Create tables with full SQL Server features such as primary keys, indexes, constraints, etc. Execute a c...
  • aditridant's avatar
    aditridant
    1 year ago

    Thanks v-veshwara-msft Yes, I'm aware of the Data Warehouse functionality, and it's part of my current design. However, it doesn't offer all the SQL features we need, which is why I’ve been exploring options with Fabric SQL Database.

    That said, I’ve now got answers to the questions I had:

    1. Is there a better way to handle this scenario in Microsoft Fabric?
      Not at the moment. The Data Warehouse remains the preferred option, even though it doesn’t support traditional indexes. Internally, it still helps improve performance over time through the use of statistics. While statistics aren't the same as indexes, they do assist the query optimizer in execution planning, which can lead to performance improvements. For enforcing uniqueness (like primary keys), the current workaround is to adjust stored procedures to ensure only unique records are ingested. While not ideal, this approach works for our current use case. 
    2. Can the SQL Endpoint be enabled to perform DML operations (writes)?
      As of now, this isn't on the roadmap.