Q
Problem solve Get help with specific problems with your technologies, process and projects.

Equivalent of Oracle's v$database

Is there a view in SQL Server 2000 that is analogous to v$database in Oracle? I need to use the current database name in my application code. In Oracle, I can use v$database to get the database name.

Use:

 Select db_name()

 

For More Information

Dig Deeper on Microsoft SQL Server Installation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close