// Requiring modules const express = require('express'); const app = express(); const mssql = require("mysql"); // Get request app.get('/', function (req, res) { // Config your database credential const config = { user: 'SA', password: 'Your_Password', server: 'localhost', database: 'geek' }; // Connect to your database mssql.connect(config, function (err) { // Create Request object to perform // query operation var request = new mssql.Request(); // Query to the database and get the records request.query('select * from student', function (err, records) { if (err) console.log(err) // Send records as a response // to browser res.send(records); }); }); }); var server = app.listen(5000, function () { console.log('Server is listening at port 5000...'); });

 

09/03/2013
BONNE NOUVELLE!!!!


04/27/2011
Bonne Nouvelle