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
 Transact-SQL (2000)
 ID of database

Author  Topic 

Mazdak
Yak Posting Veteran

63 Posts

Posted - 2002-11-01 : 13:48:57
How can I get ID of database?

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2002-11-01 : 13:56:40
You could use the db_id() function.

Jay White
{0}
Go to Top of Page

Mazdak
Yak Posting Veteran

63 Posts

Posted - 2002-11-01 : 14:28:57
How can I get with a query?

Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-11-01 : 14:50:22
SELECT db_id()

Go to Top of Page
   

- Advertisement -