Advertisement
Guest User

Untitled

a guest
Jan 7th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. var Connection = require('tedious').Connection;
  2. var config = {
  3. userName: 'hackmatch',
  4. password: 'hackvalley123!',
  5. server: 'hackmatch.database.windows.net',
  6. options: {encrypt: true, database: 'AdventureWorks'}
  7. };
  8. var connection = new Connection(config);
  9. connection.on('connect', function(err) {
  10. // If no error, then good to proceed.
  11. console.log("Connected");
  12. });
  13.  
  14. var Request = require('tedious').Request;
  15. var TYPES = require('tedious').TYPES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement