Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Can't set variable from postgres sql query #3960

@nogginbox

Description

@nogginbox

Describe the bug

I've created a connection to my Postgres DB using

#r "nuget:Microsoft.DotNet.Interactive.PostgreSql, *-*"

and

#!connect postgres --kernel-name "search-db"  --connection-string "***"

I'm now trying to store the value of a query to share with a C# cell using this example I found for SQL Server cells:

#!sql-search-db --name "Searches"
SELECT *
FROM "Searches"
LIMIT 10;

I'm getting the error:

Error: (1,22): error DNI103: Unrecognized parameter name '--name'

Is this feature implemented yet?

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

.NET Interactive
© 2020-2025 Microsoft Corporation
Version: 1.0.617701+fb2fd8022ab96c55fbaf34d5e1c8c61cb01690fc
Library version: 1.0.0-beta.25177.1+fb2fd8022ab96c55fbaf34d5e1c8c61cb01690fc
https://github.com/dotnet/interactive

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

If applicable, please add screenshots of the entire VS Code window.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions