This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
You created your SQL database in Fabric because you wanted to take full advantage of all the existing workloads without worrying about integration pain points. Python notebook integration with SQL was highly requested. We are thrilled to share you can seamlessly use a python notebook to connect to SQL database in Fabric with the help of T-SQL Magic command. This command allows users to harness the full power of Transact-SQL (T-SQL) in ways that were previously unimaginable, blending advanced scripting with intuitive workflows, automation, and seamless integration across the Fabric data platform.
Connect_to_your_SQL_database_in_Fabric_using_Python_NotebookAI-generated content may be incorrect." />
3. Change the cell type to T-SQL.
Connect_to_your_SQL_database_in_Fabric_using_Python_Notebook
AI-generated content may be incorrect." />4. Add “%%tsql -artifact <databasename> -type SQLDatabase” before your T-SQL and hit run.
Connect_to_your_SQL_database_in_Fabric_using_Python_NotebookAI-generated content may be incorrect." />
This is our first step to connecting python notebook with SQL database in Fabric. There’s more on the way stay tuned for more.
Please try this new functionality and share your feedback on Fabric Ideas and join the conversation on the Fabric Community.
To Learn more about this preview feature check out Run T-SQL code in Fabric Python notebooks - Microsoft Fabric | Microsoft Learn
To get into the technical details, head over to the Fabric documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.