Closed sll1966 closed 2 years ago
This is because you are using the global pool to connect to multiple dbs which is not supported. See docs https://github.com/tediousjs/node-mssql#advanced-pool-management
see also #1376 and other related issues.
Thank you for your assistance. That was very helpful and i have it working correctly now....
UnExpected behaviour: -->
Promise fails due to DBErrorTestRack: Invalid object name 'testrack.dbo.TestData'. Which ever API is called first works fine. Randomly 2nd called API always fails. It seems to be pointing to the other API database connection which doesn't have the above table.
Return result set from 2nd API call from the other 2nd database
Actual behaviour:
the above unexpected behaviour
Query (simplified below) which runs fine if i past into MS SSMS:
Configuration:
1 of the 2 very similar API calls is ...
The API's are:
The DB calls are
Software versions