This repository was archived by the owner on May 7, 2024. It is now read-only.
File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -233,10 +233,25 @@ Note this example is for Linux and macOS usage.
233
233
You can set environment variables for your connection string through the following steps:
234
234
235
235
236
+ # (linux/bash)
236
237
# set environment variable MSSQL_SCRIPTER_CONNECTION_STRING with a connection string.
237
238
$ export MSSQL_SCRIPTER_CONNECTION_STRING='Server=myserver;Database=mydb;User Id=myuser;Password=mypassword;'
238
239
$ mssql-scripter
239
240
241
+ # (linux/bash)
240
242
# set environment variable MSSQL_SCRIPTER_PASSWORD so no password input is required.
241
243
$ export MSSQL_SCRIPTER_PASSWORD='[PLACEHOLDER]'
242
244
$ mssql-scripter -S localhost -d AdventureWorks -U sa
245
+
246
+ # (windows)
247
+ # set environment variable MSSQL_SCRIPTER_CONNECTION_STRING with a connection string.
248
+ setx MSSQL_SCRIPTER_CONNECTION_STRING 'Server=myserver;Database=mydb;User Id=myuser;Password=mypassword;'
249
+ # note: you must start a new PS session for the change to take effect
250
+ mssql-scripter
251
+
252
+ # (windows)
253
+ # set environment variable MSSQL_SCRIPTER_PASSWORD so no password input is required.
254
+ setx MSSQL_SCRIPTER_PASSWORD mypassword
255
+ # note: you must start a new PS session for the change to take effect
256
+ $ mssql-scripter -S localhost -d AdventureWorks -U sa
257
+
You can’t perform that action at this time.
0 commit comments