Updated version of the script by Chrislis http://www.sqlservercentral.com/scripts/Replication/31556/
The code is originally credited to Chrislis - I've just amended it!
- Uses SQL2005 system views rather than SQL2000 system tables
- Includes support for schemas