Forum Discussion

joicejoy's avatar
joicejoy
Copper Contributor
Aug 04, 2023

How to set environment variables for sql server process running on windows

Hello,

I want to set environment variable in sql server process running on windows machine. Please help me on this

  • olafhelper's avatar
    olafhelper
    Bronze Contributor
    For what?
    SQL Server runs under a service account, which do't have a profil and so no enviroment.
    • joicejoy's avatar
      joicejoy
      Copper Contributor

      olafhelper

      Thanks for the quick reply.

      I have two instances of sql server running on two different ports on the same machine. I want my java application to dynamically get these ports from process environment, but you are saying there is no environment right?

      • olafhelper's avatar
        olafhelper
        Bronze Contributor
        SQL Server don't use Java, so how does you processes look like?

Resources