Computer name

J

Jose Perdigao

I have a UDF to identify the user name, using the folloing funtion
SUSER_SNAME()
In SQl server 2000 there is ane function to know the computer name?

Thanks,
José Perdigão
 
J

Jose Perdigao

Hi Giorgio,
This is what I want

Thanks a lot
José

giorgio rancati said:
Hi Jose

View
----
HOST_NAME()
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ha-hz_05r9.asp
----

for more client's instances
----
SELECT HOST_NAME()+HOST_ID()

HOST_ID()
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ha-hz_23s4.asp
----

bye
--
Giorgio Rancati
[Office Access MVP]

Jose Perdigao said:
I have a UDF to identify the user name, using the folloing funtion
SUSER_SNAME()
In SQl server 2000 there is ane function to know the computer name?

Thanks,
José Perdigão
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top