This is one from the archives that obviously got away. I had need for this today so thought I'd post so I don't have to look so hard next time!
It's pretty much a case of create the SP in your chosen database and run with a tablename as the parameter. I originally found this on one of the SQL sites (probably SQLServerCentral), and amended it slightly to add some basic filtering in the @where parameter.
There's a few limitations from memory - with blob, image and text fields, but for your average tables this will probably do the trick just fine.
I've also used a different method that basically builds up a single INSERT with SELECT 'literal values' UNION SELECT 'literal values'. That works fine and is potentially easier to control transaction-wise as everthing's in a single statement. Anyway here's the code....