1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

Updated connection strings

This commit is contained in:
Meet Bhagdev
2016-07-18 17:09:13 -07:00
parent 74f3838a54
commit 226908823c
11 changed files with 36 additions and 72 deletions

View File

@ -2,9 +2,9 @@ var Connection = require('tedious').Connection;
var config = {
userName: 'yourusername',
password: 'yourpassword',
server: 'yourserver.database.windows.net',
// When you connect to Azure SQL Database, you need these next options.
options: {encrypt: true, database: 'AdventureWorks'}
server: 'yourserver',
options: {encrypt: true, database: 'yourdatabase'}
};
var connection = new Connection(config);
connection.on('connect', function(err) {