You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to stream the results of a query that returns 250,000 rows, however I am never getting anywhere near the end. When starting from the beginning of the query results, node always stops running after 176 rows with no error indicated. When starting from row 175, I get 534 rows. There's another example in the code sample below. Any idea what might be happening here?
I'm using node-mssql 1.2.0 with node 0.10.31
sql.connect(config, function (err) {
var request = new sql.Request();
request.stream = true;
request.query('select * from data');// stops at 176 results
//request.query('select * from data where intid > 17063'); //if you start at 175th row (intid>17063), you get 534
//request.query('select * from data where intid > 500140'); //if you start at number 533rd row (intid>500140) you get 524
request.verbose = false;
var i = 1;
request.on('recordset', function (columns) {
});
request.on('row', function (row) {
console.log(row);
console.log(i + '');
i++;
});
request.on('error', function (err) {
console.log(err);
});
request.on('done', function (returnValue) {
console.log(returnValue);
});
});
The text was updated successfully, but these errors were encountered:
I'm trying to stream the results of a query that returns 250,000 rows, however I am never getting anywhere near the end. When starting from the beginning of the query results, node always stops running after 176 rows with no error indicated. When starting from row 175, I get 534 rows. There's another example in the code sample below. Any idea what might be happening here?
I'm using node-mssql 1.2.0 with node 0.10.31
sql.connect(config, function (err) {
});
The text was updated successfully, but these errors were encountered: