![Not able to add Second Server in SQL 2014 Availability Group](https://windowstechpro.com/wp-content/uploads/2024/10/0a0d80_7dceac07898c49ab93edaff0166cb613mv2.webp)
When I am trying to add the Second Server for the SQL AlwaysON Group, I end up with following error
![2](https://static.wixstatic.com/media/0a0d80_5c87fc57002a489ca874b1c468dc73e3~mv2.png/v1/fill/w_814,h_421,al_c,lg_1,q_85,enc_auto/0a0d80_5c87fc57002a489ca874b1c468dc73e3~mv2.png)
After Serious Search in Internet, Found the solution which resolved the above issue
Run the Below Command in Primary Server,
Here windowstechpro\SFBDB2$ is Domain\SecondNode$
use [master]
GO
CREATE LOGIN [windowstechpro\SFBDB2$] FROM WINDOWS
GO
GRANT CONNECT ON ENDPOINT::[Hadr_endpoint] TO [windowstechpro\SFBDB2$]
GO
Run the Below Command in Second Server,
Here windowstechpro\SFBDB1$ is Domain\PrimaryNode$
use [master]
GO
CREATE LOGIN [windowstechpro\SFBDB1$] FROM WINDOWS
GO
GRANT CONNECT ON ENDPOINT::[Hadr_endpoint] TO [windowstechpro\SFBDB1$]
GO
Then tried to add the Second Node again and found I am able to add it without any other issues.