Dumb question about "(local)" or "(localhost)"....

  • Thread starter Thread starter Robin Tucker
  • Start date Start date
R

Robin Tucker

Should I consider this to work in other locales?



If theServer.Name <> "(local)" and theServer.Name <> "(localhost)"
Then

' Can only use local machine in this version.....

End If


I'm trying to say "if you didn't choose the local machine from the list of
servers returned by the DMO server enumeration function, then you can't
continue". Now, the question is, does M$ return the word (local) or
(localhost) in, say, hebrew for a machine in that locale, or will it always
return the english (local)? Small thing for me to add these strings to my
translated resources, but I'm curious to know the answer.



Cheers




Robin
 
Robin Tucker said:
Should I consider this to work in other locales?
Depends.

If theServer.Name <> "(local)" and theServer.Name <>
"(localhost)"
Then

I'm trying to say "if you didn't choose the local machine from the
list of servers returned by the DMO server enumeration function, then
you can't continue". Now, the question is, does M$ return the word
(local) or (localhost) in, say, hebrew for a machine in that locale,
or will it always return the english (local)? Small thing for me to
add these strings to my translated resources, but I'm curious to know
the answer.

Where does this string originally come from? Who populates theServer.Name?


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
http://www.atozed.com/IntraWeb/
 
Well, I'm using SQLBrowseConnect from the odbc32.dll in order to populate a
list of available servers. Top of the list is usually "(local)" if there is
an SQL server instance on the same machine as the client.

I'm not sure if SQLBrowseConnect will put in (hebrew_for_local) at the top
of the list otherwise. I'm asking the question but could just as well
install a korean or thai version of windows onto one of my test machines.
In the interests of getting a quick answer though, I'll stick with the
newsgroups for now ;)



Robin
 
Robin Tucker said:
Well, I'm using SQLBrowseConnect from the odbc32.dll in order to
populate a list of available servers. Top of the list is usually
"(local)" if there is an SQL server instance on the same machine as
the client.

Sorry then. I dont know if this is localized on other machines or not.



--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
 
Back
Top