Execute a command against all tables in a database

Have you ever wanted to execute a command againts all tables in your database? And did you struggle with cursors or WHILE BEGIN ... END loops? So did I. Until I discovered the undocumented stored procedure sp_MSforeachtable and I love it.