• looking on writing a report on #1, disk space

    can someone point me to some sample code to do the following. grab the database info on a server. the size of the db, the free space, all db files and free space on them. SSMS has reports for it, but i was looking for the code to write my own consolidated version for all our servers and databases