Link to home
Create AccountLog in
Avatar of Alex A
Alex A

asked on

SQL Server: environment variables

Anybody knows how to get database name, database server name, OS server name, etc using T-SQL?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Yes - aneeshattingal does... :(
refer 'Serverproperty' in books online for more details
Avatar of Alex A
Alex A

ASKER

thanks!