Retrying failed connections using the Node.js mssql module

Code comment that explains how failed connections are retried when connecting to Cloud SQL for SQL Server using the Node.js mssql module.

Documentation pages that include this code sample

To view the code sample used in context, see the following documentation:

Code sample

Node.js

// The node-mssql module uses a built-in retry strategy which does not implement backoff.
// 'createRetryIntervalMillis' is the number of milliseconds to wait in between retries.
config.pool.createRetryIntervalMillis = 200;

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.