cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How do I access an OS environment variable from SQL?

VolkerBarth
Contributor
11,306

Say, I want to access the value of the Windows %TEMP% setting in order to write output to a particular directory...

Just as "cross documentation" - as it has been dealt with as a side effect of this question dealing witb DBISQL.

View Entire Topic
VolkerBarth
Contributor

AFAIK, there doesn't seem to be a builtin function, but here are some suggestions for Windows:

If you know other, better, smarter, easier solutions - please add them...