This repository was archived by the owner on May 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -233,10 +233,22 @@ Note this example is for Linux and macOS usage.
233233You can set environment variables for your connection string through the following steps:
234234
235235
236+ # (linux/bash)
236237 # set environment variable MSSQL_SCRIPTER_CONNECTION_STRING with a connection string.
237238 $ export MSSQL_SCRIPTER_CONNECTION_STRING='Server=myserver;Database=mydb;User Id=myuser;Password=mypassword;'
238239 $ mssql-scripter
239240
241+ # (linux/bash)
240242 # set environment variable MSSQL_SCRIPTER_PASSWORD so no password input is required.
241243 $ export MSSQL_SCRIPTER_PASSWORD='[PLACEHOLDER]'
242244 $ mssql-scripter -S localhost -d AdventureWorks -U sa
245+
246+ # (windows)
247+ # set environment variable MSSQL_SCRIPTER_CONNECTION_STRING with a connection string.
248+ $Env:MSSQL_SCRIPTER_CONNECTION_STRING = 'Server=myserver;Database=mydb;User Id=myuser;Password=mypassword;'
249+ mssql-scripter
250+
251+ # (windows)
252+ # set environment variable MSSQL_SCRIPTER_PASSWORD so no password input is required.
253+ $Env:MSSQL_SCRIPTER_PASSWORD = "placeholder"
254+ mssql-scripter -S localhost -d AdventureWorks -U sa
You can’t perform that action at this time.
0 commit comments