https://rdr-it.com/ferme-rds-configuration-service-broker-haute-disponibilite/2/

VM : 192.168.20.9 => rdcb + sql 

RDS broker 2 dans le domaine comptaplus.loc

Télécharger SQL Server :

https://download.microsoft.com/download/5/1/4/5145fe04-4d30-4b85-b0d1-39533663a2f1/SQL2022-SSEI-Expr.exe


MANAGEMENT STUDIO : 

https://download.microsoft.com/download/7519f0ff-997c-4f36-b5aa-9a51d47dd34c/SSMS-Setup-ENU.exe


Installer le client sql sur chaque broker

Ayant SQL EXPRESS 22 , il faut le drive OBDC 

https://learn.microsoft.com/fr-fr/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16

Non tester : 

Driver={ODBC Driver 18 for SQL Server};Server=RDS-BROKER2\SQLEXPRESS;Database=RDSHA;Trusted_Connection=Yes;TrustServerCertificate=Yes;Encrypt=yes;Connection Timeout=30;


doc officiel grinning face 

Driver={ODBC Driver 13 for SQL Server};Server=tcp:<YourHost>,<HostPort>;Database=<DatabaseName>;Uid=<UserID>;Pwd=<Password>;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;


Ajouter le serveur sur RDS BROEKR 2 (ajout de serveurs )  sur le 1 

puis ajout la fonctionnalité  "BROKER " (bureau à distance) et accès web 


après sur RDS-BROKER 

sur la vue d'ensemble 

Ajouter Serveur de base de donnée dédié


Ajouter une règle sur RDS BROKER 2 pour le port 1433

New-NetFirewallRule -DisplayName "SQL Server TCP 1433" -Direction Inbound -Protocol TCP -LocalPort 1433 -Action Allow -Profile Domain,Private



DRIVER=SQL Server Native Client 11.0;SERVER=rds-broker2;Trusted_Connection=Yes;APP=Remote Desktop Services Connection Broker;DATABASE=RDSHA






DRIVER=SQL Server Native Client 11.0; SERVER=RDS-SQL; Trusted_Connection=Yes; APP=Remote Desktop Services Connection Broker; DATABASE=RDCB_DB