Skip to content

Instantly share code, notes, and snippets.

@glennblock
Created August 8, 2012 01:04
Show Gist options
  • Save glennblock/3291120 to your computer and use it in GitHub Desktop.
Save glennblock/3291120 to your computer and use it in GitHub Desktop.
mssql.queryMultiple(conn_info, "SELECT TOP 5 FirstName,LastName FROM Person.Person SELECT TOP 10 Street, City, State, Zip FROM Address ",
function(results) {
results.foreach(function(result) {
result.on('meta', function(meta) {...});
result.on('row', function(id) {...});
result.on('column', function(column) {...});
result.on('done', function() {...});
result.on('error', function(err) {...});
});
}
);
mssql.query(conn_info, "SELECT TOP 5 FirstName,LastName FROM Person.Person ",
function(result) {
result.on('meta', function(meta) {...});
result.on('row', function(id) {...});
result.on('column', function(column) {...});
result.on('done', function() {...});
result.on('error', function(err) {...});
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment