How to know the ID of a database?
[Edit This Post] Author: Abhisek | Posted on: 2/25/2010 8:51:11 PM | Category: SQL Server | Views:7 | Print | Asked In: Many Interviews
To know the ID of a database DB_ID function is used. It takes the database name as an argument.
Example:- SELECT DB_ID(Student) -->5
Interesting? Share and Bookmark this