Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Computer Name

Author  Topic 

rpc86
Posting Yak Master

200 Posts

Posted - 2006-06-28 : 05:15:06
How will I know the computer name of the user in the query analyzer?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-06-28 : 05:27:51
SELECT HOST_NAME()


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-06-28 : 05:52:20
yeah.. and if u wnt sql server machine name, u can go for ServerProperty() system func.

Nothing is Impossible
Go to Top of Page
   

- Advertisement -