How can I query the name of the current SQL Server database instance?

后端 未结 7 1567
后悔当初
后悔当初 2020-12-06 04:27

It is a bit of a \"chicken or egg\" kind of query, but can someone dreamup a query that can return the name of the current database instance in which the query executes? Bel

相关标签:
7条回答
  • 2020-12-06 04:49
    SELECT DB_NAME() AS DatabaseName
    
    0 讨论(0)
提交回复
热议问题