希望通过SQL取服务器上的一些系统信息
1.取某个目录下,某个文件的日期 
 2.取磁盘的容量,和可用空间 
------解决方案--------------------我记得《sql server 2000高级dba指南》附录中介绍了很多无文档的存储过程和dbcc命令,应该有你想要的。
------解决方案--------------------關注
------解决方案----------------------查看硬盘分区: 
 EXEC master..xp_fixeddrives   
 /* 
 drive	MB 可用空间 
 ---------------------- 
 C	5466 
 D	493 
 E	3769 
 */
------解决方案--------------------exec xp_cmdshell  'dir c:\ '??   
 可以考虑用sql调用组件
------解决方案----------------------取某个目录下,某个文件的日期 
 create table #(msg varchar(100)) 
 insert # EXEC master..xp_cmdshell  'dir c:\test.xls ' 
 select id=identity(int,1,1),msg=convert(varchar(10),msg,120)  into ## from # 
 select msg from ## where id=6 
 drop table # 
 drop table ##   
 /* 
 msg 
 ---------------- 
 2007-06-15 
 */