Mark
Mon Jul 19 15:41:58 CDT 2004
I think he wants to update he app var dynamically through an asp page on one
server and not require an app restart.
I would suggest putting the new value into a db for when the app does
restart and then using ServerXMLHTTP to hit an update page on the other
server to either change the app var directly or reload all the vars from the
db.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:OG95p5cbEHA.1652@TK2MSFTNGP09.phx.gbl...
> Maybe you misunderstood Tom's point. You would only hit the DB when
> application_onstart is fired, e.g. in Global.asa:
>
> Sub Application_OnStart()
> Set conn = CreateObject("ADODB.Connection")
> conn.open "<connection string>"
> set rs = conn.execute("SELECT ConstantValue FROM Constants WHERE
> ConstantName = 'foo'")
> application("foo") = rs(0)
> rs.close: set rs = nothing
> conn.close: set conn = nothing
> End Sub
>
> --
>
http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Art" <Art@discussions.microsoft.com> wrote in message
> news:6D707C6C-86EC-4490-9326-F160C7DECD71@microsoft.com...
> > Tom,
> > Thanks for your help but our point was to avoid hitting the DB.
> >
> > "Tom Kaminski [MVP]" wrote:
> >
> > > "Art" <Art@discussions.microsoft.com> wrote in message
> > > news:13EE1D5E-F3B0-4F91-936C-A3FCE417273A@microsoft.com...
> > > > Can I update Application("SomeVariableName") on server A in response
> to
> > > user's action on server B? There is no problem in updating the same
> variable
> > > on server B, of course, but we would like both variables to be in sync
> since
> > > users can view the value stored on arbitrary server.
> > > >
> > > > So far I have tried server.execute and server.transer to execute
> script
> > > updating Application("SomeVariableName") value on server A in response
> to
> > > user's action on server B but these methods didn't work -
documentation
> > > conformed it.
> > > >
> > > > Is there another, perhaps some creative way of doing it?
> > >
> > > Store the value in a database.
> > >
> > > --
> > > Tom Kaminski IIS MVP
> > >
http://www.microsoft.com/windowsserver2003/community/centers/iis/
> > >
http://mvp.support.microsoft.com/
> > >
http://www.iisfaq.com/
> > >
http://www.iistoolshed.com/ - tools, scripts, and utilities for
running
> IIS
> > >
http://www.tryiis.com
> > >
> > >
> > >
>
>