Hello @Purushotham Chanda ,
Thanks for the ask and using the Microsoft Q&A platform .
The class which you are refering to is it for SQL or windows authentication ?. Can you try to create a SQL user on the Azure SQL/Synapase and see if that works ? To me it looks like it should work for SQL .
You may have to add the IP of the Adb server on the server firewall .
Just in case if you still facing issues please share more details about the class .
On other thing , is the SQL you are trying to connect is managed instance ( MI ) , if yes set specific rule in UDR and NSG to route/allow your internet client traffic (out bound direction).
Please do let me know how it goes .
Thanks
Himanshu
Please do consider clicking on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members