Re: SetNet32 information updated when using connection string.



On Aug 30, 10:54 am, hometoast <hometo...@xxxxxxxxx> wrote:
If I specify an IP address in my connection string, after the
connection is made setnet32 has been changed to use that hostname
instead of the default.

Is this is what's intended?

Our environment is such our production and test servers have the same
name, but are on different machines. This lets the development staff
use one hosts file and the production users use another. I'm writing
an app which attempts to compare database tables for verification
between the test and production environments. So I would want to
connect to servern...@xxxxxxxx and servern...@xxxxxxxx at the same
time; but this seems impossible.

Is there a way to NOT update the registry/setnet as a sideeffect of
connecting with an alternate hostname?

That's the first mistake. You should NEVER have two server instances
with the same name on different machines. Environment variables, ODBC
tags, and other mechanisms were developed for allowing your
applications to know have to know the server''s name at compile time
but to either determine the servername at runtime or to just connect
to a default server. Fix that and things get easier. I think that
you are the third person this month to have a similar problem with the
same cause.

Art S. Kagel

.



Relevant Pages

  • Re: active / active servers with databases - pros and cons
    ... I have a production environment for a service running oracle on a sun ... server and this has a backup server in standby mode using oracle 10g ... dev/test/training database onto the standby server as well. ...
    (comp.databases.oracle.server)
  • Re: active / active servers with databases - pros and cons
    ... I have a production environment for a service running oracle on a sun ... server and this has a backup server in standby mode using oracle 10g ... dev/test/training database onto the standby server as well. ...
    (comp.databases.oracle.server)
  • Re: Isolated member server wont authenicate with Isolated DC
    ... A GC is really only needed in a Native Mode AD environment. ... production DC out of production and put it in an isolated test environment ... >> FSMO roles on it and is not a global catalog server. ... >> back into a test lab to duplicate. ...
    (microsoft.public.win2000.active_directory)
  • active / active servers with databases - pros and cons
    ... I have a production environment for a service running oracle on a sun ... server and this has a backup server in standby mode using oracle 10g ... This standby server can also be used for read only reporting ...
    (comp.databases.oracle.server)
  • Re: mod_perl and access to the parent processes environment?
    ... Yes the general idea is that I set the environment up with the host ... hostname amongst other things. ... I start httpd and to then evaluate those vars quite simple and elegant ... That won't work out well because the server would have to be ...
    (comp.lang.perl.modules)

Loading