Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join now60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more
Hi,
Can you please assist with some advice or guidiance on how to connect my flask application, to our mssql server/database.
Could be a Youtube videos, or any online study material.
I have successfuly build my application and is working fine with sqlite, but my company uses MSSQL Server which is were I need to connect it to, I do have solid background on executing SQL statements, (T-SQL), but my request right is anyone with usefull guideline or information/walk through on how I connect the flask app to our inhouse db, would appreciate that.
Thank you
Solved! Go to Solution.
Hi @Sekelo77,
Thank you for reaching out to Microsoft Fabric Community.
Based on your requirement, since the application is already working with sqlite, you only need to update the database connection. The recommended approach is to use SqlAlchemy with the pyodbc driver, which works correctly with sql server in production environments. Please follow below steps:
You can also execute raw T-Sql queries if needed using SqlAlchemy.
Thanks and regards,
Anjan Kumar Chippa
Hi @Sekelo77,
Thank you for reaching out to Microsoft Fabric Community.
Based on your requirement, since the application is already working with sqlite, you only need to update the database connection. The recommended approach is to use SqlAlchemy with the pyodbc driver, which works correctly with sql server in production environments. Please follow below steps:
You can also execute raw T-Sql queries if needed using SqlAlchemy.
Thanks and regards,
Anjan Kumar Chippa
Thank You.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.