467,162 Members | 944 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,162 developers. It's quick & easy.

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

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
Nov 21 '05 #1
  • viewed: 1329
Share:
3 Replies
"Robin Tucker" <id*************************@reallyidont.com> wrote in
news:d9*******************@news.demon.co.uk:
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/
Nov 21 '05 #2

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

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn**************************@127.0.0.1...
"Robin Tucker" <id*************************@reallyidont.com> wrote in
news:d9*******************@news.demon.co.uk:
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/

Nov 21 '05 #3
"Robin Tucker" <id*************************@reallyidont.com> wrote in
news:d9*******************@news.demon.co.uk:
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/
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Chris | last post: by
4 posts views Thread by Greg Cyrus | last post: by
1 post views Thread by laredotornado@zipmail.com | last post: by
12 posts views Thread by Jonathan Wood | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.