Am trying to do a migration of some servers from 2000 to 2005 but need to do some auditing on each server to retrieve some useful information. I need to write queries to supply the info below
1. Login information at server and and database levels: i.e
-sql server login name/database login name as "login name"
-type of login (sql user, nt user or nt group)
2. Database information at server level: i.e
-Database owner login name as 'login name'
-'database owner' as 'type of login'
-last database backup as 'date update'
3. I also need 'surname' and 'initials' to be created manually as a temporary as part of the query by looking them up in outlook "Global Address List".
4. Results from these temporary table should then be exported to Excel.
Any assistance would be appreciated such as tsql to help query the servers to supply above info, also the temporary table and exporting to excel.