I have a database with 69 tables and I want to select only the first three records of each table.
I can do it per table with:
SELECT TOP 3 *
exec sp_MSforeachtable 'select top 3 * from ?'