Connecting to AWS RDS Microsoft SQL Server with Multi-AZ (Always On) DB configuration and MultiSubnetFailover parameter in connection string fails.

0

Hello. I'm using AWS RDS Microsoft SQL Server with Multi-AZ (Always On) configuration and sqlcmd tool to connect to DB. But when I use 'MultiSubnetFailover' parameter in the connection string I get error: "Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Connecting to a mirrored SQL Server instance using the MultiSubnetFailover connection option is not supported.." My sqlcmd connection string is "sqlcmd -I -W -C -M -b -m-1 -d <db_name>" Does anyone have any ideas why this happens when using the 'MultiSubnetFailover parameter? Would be grateful for any ideas and suggestions. Thanks in advance.

feita há 8 meses814 visualizações
1 Resposta
1
Resposta aceita

Hi,

Please check https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_SQLServerMultiAZ.html It states that:

Amazon RDS exposes the Always On AGs availability group listener endpoint. The endpoint is visible in the console, and is returned by the DescribeDBInstances API operation as an entry in the endpoints field.
profile picture
ESPECIALISTA
respondido há 8 meses
profile picture
ESPECIALISTA
avaliado há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas