Error 40197 indicates that the service has encountered an error processing your request, which may occur due to software or hardware upgrades, hardware failures, or other failover problems. This error suggests that the service is temporarily unavailable, and you should try reconnecting to the SQL Database until the resources are available again.
Error 701, while not explicitly detailed in the provided context, typically relates to resource limitations, indicating that the server is currently too busy to process the request. This can occur when the total number of concurrent workers across all databases in the elastic pool exceeds the pool limit.
To resolve these errors, you can try the following steps:
- Retry the Connection: For error 40197, implement logic in your application to catch this error and automatically retry the connection after a brief wait.
- Check Resource Limits: For error 701, consider increasing the DTUs or vCores of the elastic pool to allow for more concurrent requests, or reduce the number of databases or their resource usage in the pool.
- Monitor Resource Usage: Keep an eye on the resource usage of your databases to ensure they are within the limits set for the elastic pool.
References: