-
Hi! I wish to connect to a database using #!connect, but instead of specifying the connection string in a literal manner I would like to use a variable that contains a connection string defined earlier in my notebook. So I imagine something like this: (C#) var connectionString = "...."; (SQL) #!share --from csharp connectionString
#!connect mssql --kernel-name someDb connectionString
SELECT * .... But alas, this does not work. Is there some way to share and use the connectionString variable in the #!connect magic command? |
Beta Was this translation helpful? Give feedback.
Answered by
huhubun
Jan 2, 2023
Replies: 1 comment 1 reply
-
I had the same problem and found the answer here #2523 (comment) 😀 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andrerav
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had the same problem and found the answer here #2523 (comment) 😀