I am using windows azure mobile services and I want to select information from the table using the mssql object in my custom API
here is a simplified version of my code. It says that mssql in not defined. How should the mssql object be defined be defined??
exports.get = function(request, response) { mssql.query('select top 1 * from Questions', { success: function(results) { console.log(results); } }); response.send(statusCodes.OK, { message : 'Hello World!' }); };
Also The data (Questions table) I am trying to access were added to my azure sql database via entity framework and this table is not visible through the "Mobile Services: data" menu. Does it need to be??
- Edited by GLyons12345 Tuesday, August 13, 2013 9:53 AM