Anonymous Asked in Cars &Transportation · 2 weeks ago

How do I find current database in SQL?

Contents
Getting the Name of the Server and Databases in SQL Server Select * from sysservers. Select @@servername as [ServerName] SELECT DB_NAME() AS [Current Database] Select * from sysdatabases.


Related Questions

Relevance
Write us your question, the answer will be received in 24 hours