{"action":"closed","issue":{"url":"https://api.github.com/repos/patriksimek/node-mssql/issues/246","repository_url":"https://api.github.com/repos/patriksimek/node-mssql","labels_url":"https://api.github.com/repos/patriksimek/node-mssql/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/patriksimek/node-mssql/issues/246/comments","events_url":"https://api.github.com/repos/patriksimek/node-mssql/issues/246/events","html_url":"https://github.com/patriksimek/node-mssql/issues/246","id":123629616,"number":246,"title":"streaming event for row stops ","user":{"login":"ambodi","id":6009583,"avatar_url":"https://avatars.githubusercontent.com/u/6009583?v=3","gravatar_id":"","url":"https://api.github.com/users/ambodi","html_url":"https://github.com/ambodi","followers_url":"https://api.github.com/users/ambodi/followers","following_url":"https://api.github.com/users/ambodi/following{/other_user}","gists_url":"https://api.github.com/users/ambodi/gists{/gist_id}","starred_url":"https://api.github.com/users/ambodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambodi/subscriptions","organizations_url":"https://api.github.com/users/ambodi/orgs","repos_url":"https://api.github.com/users/ambodi/repos","events_url":"https://api.github.com/users/ambodi/events{/privacy}","received_events_url":"https://api.github.com/users/ambodi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/patriksimek/node-mssql/labels/discussion","name":"discussion","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-23T09:44:47Z","updated_at":"2016-02-04T01:36:40Z","closed_at":"2016-02-04T01:36:40Z","body":"```javascript\r\nsql.connect(config, function(err) {\r\n    // ... error checks \r\n \r\n    var request = new sql.Request();\r\n    request.stream = true; // You can set streaming differently for each request \r\n    request.query('select * from verylargetable'); // or request.execute(procedure); \r\n    request.on('row', function(row) {\r\n    \t// Emitted for each row in a recordset \r\n    });\r\n});\r\n```\r\n\r\nCorrect me if I'm wrong but I thought when using streaming, the request.on('row') will kinda run forever by itself and emit events. What am I missing because my connection dies after some 30 seconds or so."}}