Forum Discussion
aditridant
1 year agoFrequent Visitor
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...
- 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:
- 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. - Can the SQL Endpoint be enabled to perform DML operations (writes)?
As of now, this isn't on the roadmap.
- Is there a better way to handle this scenario in Microsoft Fabric?
v-veshwara-msft
1 year agoCommunity Support
Hi aditridant ,
Following up to see if your query has been resolved. If any of the responses helped, please consider marking the helpful reply as the 'Accepted Solution' to assist others with similar questions.
If you're still facing issues, feel free to reach out.
Thank you.