DB_ID « System « SQL Server / T-SQL






1.Returning the Current Database ID and Name