Sql Server Get Database Id