John Doe (7/2/2009)
I need to know what drive sql server 2005 is installed on? Is there anyway we can find it out using TSQL? I found some info on WMI but I have not used it before and do not know how.
Try this:
select name from sys.dm_os_loaded_modules
where right(name,12) = 'sqlservr.exe'