select database_id,name,physical_name AS CurrentLocation,state_desc,size from sys.master_files

where database_id=db_id(N'数据库名');
  • 1.
  • 2.
  • 3.

作者:꧁执笔小白꧂