How to get DOMAIN name from SQL Server? -


i tried using exec sp_who2; gives host, users, etc. it's great need know sql server's domain name can install plugin sql server management studio. plugin dell product analyse server usage - "spotlight studio plugin" , runs service.

thanks

in t-sql, use query domain name of sql server:

select default_domain()[domainname] 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -