Forum Discussion
khanjaved
6 months agoMicrosoft Employee
T‑SQL Magic Command (%%tsql) Error in Microsoft Fabric Notebook on Fabric SQL Database
Hello, My T-SQL command executed from a Microsoft Fabric Python notebook against a Fabric SQL Database was working fine last week, but it has suddenly stopped working. There is no change from our ...
AsgerLB
6 months agoResolver I
khanjaved thanks for confirming.
I'm capable of querying my SQL database called TranslyticalDemo with a python notebook (ver 3.11) all placed in the same workspace via the following code:
%%tsql -artifact TranslyticalDemo -type SQLDatabase -session
SELECT * FROM [SalesLT].[Sales]
Can you confirm that you are using a Python execution engine for your notebook and which version, and that both items are in the same workspace?
Also what happens if you create a new python notebook in the workspace of your sqldb and run the code?