Database Recipes
By KAMESH
Pages
Home
Creative Ads
About me
Wednesday, December 15, 2010
How to Get servername,instancename,hostname
To Get the name of server execute this query: SELECT SERVERPROPERTY(“MachineName”)
To Get the name of the computer running the query: SELECT host_name()
Instance name: SELECT @@ServerName
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment