dbcli / dbcli/mssql-cli

Allow multiline query with --query (-Q) parameter

Open
#480 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Hi!

Is it possible to run multiline query as input, e.g.:
```shell
PS> mssql-cli --integrated --server "SERVER_NAME" --query @"
>> select top 1 *
>> from $(Read-Host 'Table')
>> "@
```
?

Simple example:
```shell
PS> mssql-cli --integrated --server "SERVER_NAME" --query @"
>> select top 1 *
>> from TableName
>> "@
Msg 263, Level 16, State 1, Line 1
Must specify table to select from.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.