How to get current instance name from T-SQL

后端 未结 8 1105
天命终不由人
天命终不由人 2021-01-30 05:18

How can I get the SQL Server server and instance name of the current connection, using a T-SQL script?

8条回答
  •  半阙折子戏
    2021-01-30 05:34

    another method to find Instance name- Right clck on Database name and select Properties, in this part you can see view connection properties in left down corner, click that then you can see the Instance name.

提交回复
热议问题