Hi,
I’m having trouble connecting to a SQL server.
When my project builds I get the following error: ConnectionError: Failed to connect to CWCURDCDBP01:1433 - getaddrinfo ENOTFOUND CWCURDCDBP01
My project connects to the DB fine when I run it in VsCode, but when I upload it on render I encounter the issue.
Does anyone know if you need to allow for something in order for a SQL server connection to be made?
This is my DB Config
var config = {
user: ‘MyUsername’,
password: ‘MyPassword’,
server: ‘DBP1’,
database: ‘MyDatabase’,
options: {
trustServerCertificate: true
}
};