Paul's solution is quite simple and easy and should do just what you're asking, but if you're using SQL Server and want to know more about the tables in your database, check out the sys... tables - sysColumns, sysObjects. I can't recall the exact names of the tables, but with they start with "sys" and with a little familiarization of them, you can get info on your db's schema.