Get Installation path
-
Well, although he did not specify it but he might want to know the path programatically. -Saurabh
-
I'm pretty sure you can look that up in Windows registry... This code should get you started: http://msdn.microsoft.com/en-us/library/ms838625.aspx[^] Try searching the registry for microsoft sql-related keys and see if the path is there.
-
Well, although he did not specify it but he might want to know the path programatically. -Saurabh
-
Look in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for a key that matches however MSSQL lists itself. In that key, get the
UninstallString
value. That path should get you in the near vicinity. Other places in the registry to look might be HKLM\SOFTWARE\Microsoft\MSSQLServer\Setup and HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\\Setup."Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Saurabh.Garg wrote:
Well, although he did not specify it but he might want to know the path programatically. -Saurabh
He might want to know the time in Timbuktoo ... It would help if people specified clearly what their problem is in the first instance.
Yes but that is the sad reality of programming forums. I have accepted the situation and stop fighting it. This way it is so much more easier. -Saurabh