mssql:
sp_helpfile
mysql:
mysql -h主机名 -u用启名 -p密码; use information_schema; select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from TABLES;