The error is being thrown from https://github.com/cretz/node-tds/blob/master/lib/tds.js#L140 .
Like node-tds, tedious will probably never support concurrent requests on a single connection either. It's just too much work for too little reward. > But if two of my clients send an insertion request to my server, Each client should probably be using a separate connection (probably from a connection pool). On a related note, I will probably implement support for specifying RESETCONNECTION (2.2.3.1.2 Status<http://msdn.microsoft.com/en-us/library/dd358342(v=prot.13).aspx>) in tedious requests in the future, to be more connection pool friendly. On Monday, 7 May 2012 22:19:07 UTC+1, Emerson Espínola wrote: > > Hi all, > > I'm using the TDS module to connect to SQL Server. But if two of my > clients send an insertion request to my server, I get "Statement currently > running" exception (from tds.js: 140). > > An idea about how solve this concurrent problem? > > []'s > Emerson de Lira Espínola > <http://about.me/emersonespinola> <https://about.me/emersonespinola> * > https://about.me/emersonespinola* > <http://www.myebook.com/emersonespinola/> > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
