Files
sqltoolsservice/test/CreateConnectionSettings.cmd
Leila Lali b353b2137e New test common project for database connections using the settings.json (#210)
* moved test driver tests and test common classes to separate projects
2017-01-11 13:47:56 -08:00

15 lines
948 B
Batchfile

echo "mssql.connections": [ { > %USERPROFILE%\settings.json
echo "server": "<Server Name>", >> %USERPROFILE%\settings.json
echo "authenticationType": "SqlLogin", >> %USERPROFILE%\settings.json
echo "user": "<User ID>", >> %USERPROFILE%\settings.json
echo "password": "<Password>", >> %USERPROFILE%\settings.json
echo "serverType": "OnPrem" },{ >> %USERPROFILE%\settings.json
echo "server": "<Azure Server Name>", >> %USERPROFILE%\settings.json
echo "authenticationType": "SqlLogin", >> %USERPROFILE%\settings.json
echo "user": "<User ID>", >> %USERPROFILE%\settings.json
echo "password": "<Password>", >> %USERPROFILE%\settings.json
echo "serverType": "Azure" } >> %USERPROFILE%\settings.json
echo ] >> %USERPROFILE%\settings.json
SET SettingsFileName=%USERPROFILE%\settings.json
REM The connection setting template is created here: "%USERPROFILE%\settings.json". Make sure to add the connection info before running the tests