Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Select * from *

Author  Topic 

ConradK
Posting Yak Master

140 Posts

Posted - 2010-05-13 : 17:06:30
or something along those lines. I guess I'm looking for a select statement that will tell me every column in every table in the DB I have access to. Its the backend to a website, and I can write queries, but am unaware of all the tables the back end provides, and can not find a list of them.

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-05-13 : 17:19:52
This Maybe?
select * from INFORMATION_SCHEMA.COLUMNS
ORDER BY TABLE_NAME
Go to Top of Page

ConradK
Posting Yak Master

140 Posts

Posted - 2010-05-13 : 17:29:00
thanks!
Go to Top of Page
   

- Advertisement -