Skip to content

Conversation

nycdotnet
Copy link

@nycdotnet nycdotnet commented Jan 21, 2023

This PR is not intended to be merged. It is to provide an executable demonstration of the issue described in #197. I ran this on Windows 10 on x64 with Docker Desktop installed.

Instructions:

  • Run docker build -f sql-server-linux.dockerfile .
  • Run the image based on the build SHA - on my system the command was docker run 7615266b

Expected result: After 30 seconds (the sleep time in the shell script), the script prints:

running script with SQLCMD legacy
This is my test variable for issue 197
running script with SQLCMD GO
This is my test variable for issue 197

Actual result: After 30 seconds, the script produces the following output:

running script with SQLCMD legacy
This is my test variable for issue 197
running script with SQLCMD GO
Msg 128, Level 15, State 1, Server 485dab2e6162, Line 2
The name "NThis" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.
Msg 105, Level 15, State 1, Server 485dab2e6162, Line 2
Unclosed quotation mark after the character string '
'.

Note: If the container is unable to boot SQL Server completely in 30 seconds, it won't properly exercise the functionality - bump up the sleep timer on line 7 of the shell script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not to be merged PR not to be merged. POC/Demo/Repro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants