diff --git a/samples/tutorials/node.js/macOS/SqlServerColumnstoreSample/columnstore.js b/samples/tutorials/node.js/macOS/SqlServerColumnstoreSample/columnstore.js index ff4b9902..c1e3f7da 100644 --- a/samples/tutorials/node.js/macOS/SqlServerColumnstoreSample/columnstore.js +++ b/samples/tutorials/node.js/macOS/SqlServerColumnstoreSample/columnstore.js @@ -44,4 +44,7 @@ connection.on('connect', function(err) { exec('SELECT SUM(Price) FROM Table_with_5M_rows'); }, ]); -}); \ No newline at end of file +}); + +// Initialize the connection. +connection.connect(); diff --git a/samples/tutorials/node.js/macOS/SqlServerSample/connect.js b/samples/tutorials/node.js/macOS/SqlServerSample/connect.js index 7a405b04..e4ff0cb5 100644 --- a/samples/tutorials/node.js/macOS/SqlServerSample/connect.js +++ b/samples/tutorials/node.js/macOS/SqlServerSample/connect.js @@ -20,4 +20,7 @@ connection.on('connect', function(err) { } else { console.log('Connected'); } -}); \ No newline at end of file +}); + +// Initialize the connection. +connection.connect(); diff --git a/samples/tutorials/node.js/macOS/SqlServerSample/crud.js b/samples/tutorials/node.js/macOS/SqlServerSample/crud.js index 160a28f1..4b26179b 100644 --- a/samples/tutorials/node.js/macOS/SqlServerSample/crud.js +++ b/samples/tutorials/node.js/macOS/SqlServerSample/crud.js @@ -123,7 +123,10 @@ connection.on('connect', function(err) { } else { console.log("Done!"); } - } - ) + }) } -}); \ No newline at end of file +}); + + +// Initialize the connection. +connection.connect();