Monday, April 27, 2009

All the Tables from All Databases

sp_msforeachdb 'select "?" AS db, * from [?].sys.tables'

No comments:

Post a Comment