SQL Server: How to SELECT the installation path?

前端 未结 4 1289
滥情空心
滥情空心 2020-12-15 12:44

i know there is a variable, function, or stored procedure that you can use to find the path that SQL Server is installed to:

e.g.:

c:\\Program Files\         


        
4条回答
  •  自闭症患者
    2020-12-15 13:11

    what happens when you run this

    select filename from sysaltfiles
    where name = db_name()
    

    change db_name() to 'master' if you want to see where the master database lives

提交回复
热议问题