Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit f9f27fe

Browse files
Merge pull request #264 from eshultz/patch-1
Environment Variables example (Windows)
2 parents b9b38be + 2af5b97 commit f9f27fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/usage_guide.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,22 @@ Note this example is for Linux and macOS usage.
233233
You 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

0 commit comments

Comments
 (0)