-
-
Save glennblock/3291120 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) {...}); | |
}); | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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