microsoft / mssql-scripter

Repository for the new SQL cross-platform command line tools
Other
739 stars 147 forks source link

Cannot run the script in node-alpine docker image #268

Open tannontawat opened 2 years ago

tannontawat commented 2 years ago

I have a docker image that runs with node-alpine and I installed python3.9, mssql-scripter, msodbcsql17_17.8.1.1-1_amd64.apk, and mssql-tools_17.8.1.1-1_amd64.apk.,

And I tried to run the script on container's shell like this mssql-scripter -S xxx.xxx.xx.xx -U xx -P xxxx -d dev-xxxx --schema-and-data --script-drop-create --exclude-objects dbo.xxxxx dbo.aaaa dbo.bbbb dbo.cccc > 1653469182687_-test-command-1.sql

So, it returns like this local variable 'sql_tools_client' referenced before assignment.

How to fix it??

matthew-shtyasek commented 1 year ago

Have you found a solution?