Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve Database Name

Status
Not open for further replies.

strom99

MIS
Nov 28, 2000
126
US
Is it possible to retrieve the name of my database and/or server to display in my query?

Thanks Much!!
 
strom99,

SELECT DB_NAME()

will return the name of the current database.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top