Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 current database name

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-02-20 : 09:19:54
Charles Shimon writes "1.What is the query to get the name of the database we are currently working at?"

andre
Constraint Violating Yak Guru

259 Posts

Posted - 2002-02-20 : 09:40:10
Use this:
SELECT DB_NAME()  


Go to Top of Page
   

- Advertisement -