Answers for "how to find sql server installation folder"

SQL
0

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'Software\Microsoft\MSSQLServer\Setup',
      N'SQLPath', 
      @dir output, 'no_output'
select @dir AS InstallationDirectory
Posted by: Guest on June-04-2021

Code answers related to "how to find sql server installation folder"

Code answers related to "SQL"

Browse Popular Code Answers by Language