Hi deepu229,
Note: You can find Domain Name using T-SQL and this is available only for
SQL Server and Azure SQL Database. And the same don’t applies to Azure Synapse Analytics.
In T-SQL, you would use this to query the Domain Name of the SQL Server:
SELECT DEFAULT_DOMAIN()[DomainName]
For more details, refer “DOMAINS(Transact-SQL)”.
For Azure Synapse Analytics (formerly SQL DW):
The server name in the following example is samplesvr.database.windows.net. To find the fully qualified server name:
- Go to the Azure portal.
- Click on Azure Synapse Analytics.
- Click on the Azure Synapse Analytics you want to connect to.
- Locate the full server name.

Hope this helps. Do let us know if you any further queries.
----------------------------------------------------------------------------------------
Do click on "Mark as Answer" and
Upvote on the post that helps you, this can be beneficial to other community members.