Read Environment Variables in T-SQL

added by bunglebooz
10/11/2010 5:59:47 AM

2 Kicks, 113 Views

I had recently posted on Use xp_cmdshell results in T_SQL. One of the blog readers Andrew got back asking if it was possible to read Environment Variables using this method and store the value in a variable for later use.