Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to find sql server installation folder

declare @rc int, @dir nvarchar(4000) 

exec @rc = master.dbo.xp_instance_regread
      N'HKEY_LOCAL_MACHINE',
      N'SoftwareMicrosoftMSSQLServerSetup',
      N'SQLPath', 
      @dir output, 'no_output'
select @dir AS InstallationDirectory
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #sql #server #installation #folder
ADD COMMENT
Topic
Name
9+8 =