xp_cmdshell - how do you refresh environment variables????

  • Hi we have a few usp's that use xp_cmdshell to executes some proprietary software that relies on accessing environment variables. Our issue is that if a new environment variable is added to the server, it's not picked up within SQL Servers name space unless restarted which is not practical due to the high demand on the server.

    Does anyone know of a way of refreshing the environment variables without restarting SQL Server??

    Cheers in advance for any comments.

     

  • Have a look at SETX (on the resource kit)


    * Noel

  • Thanks Noel,

    Is there anymore info you can give me on this... are you talking about the SQL Server resourse kit? Do you have a URL that explains in more detail?

    Cheers

    R

  • Windows 2k resource kit

     


    * Noel

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply