chinna1990
Ten Centuries
Points: 1005
More actions
January 5, 2017 at 10:42 pm
#316595
How to get sql server host details from sql alias name ?
Beatrix Kiddo
SSC-Dedicated
Points: 32407
January 6, 2017 at 1:40 am
#1921044
Try this:
select SERVERPROPERTY ('MachineName')
January 6, 2017 at 2:06 am
#1921049
Thanks for the reply.
Actually alias name is configured in application server web-config file , and I want to know the sql server name to which alias name is setup.
January 6, 2017 at 2:14 am
#1921051
Ah, ok, you said host.
select SERVERPROPERTY ('InstanceName')
What does that give you?
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply