dbTalk Databases Forums  

Path to exe

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Path to exe in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Tissington
 
Posts: n/a

Default Path to exe - 03-03-2007 , 11:45 AM






I'm trying to automate opening the firewall for an instance of SQL.

For a given instance of SQL how do I find the path to the executable ?



Reply With Quote
  #2  
Old   
Linchi Shea
 
Posts: n/a

Default RE: Path to exe - 03-03-2007 , 10:16 PM






I like to use Process Explorer from sysinternals (now acquired by MS). Just
mouse over the process name, and it'll show you the image path.

Now, if the instance is not running, this won't tell. But you can always
look into the registry under
HKLM\SYSTEM\CurrentControlSet\Services\MSSQLServer \ImagePath for teh default
instance and HKLM\SYSTEM\CurrentControlSet\Services\MSSQL$<inst ance
name>\ImagePath for a named instance.

Linchi

"Michael Tissington" wrote:

Quote:
I'm trying to automate opening the firewall for an instance of SQL.

For a given instance of SQL how do I find the path to the executable ?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.