Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List of Table, Columns, and Column Data types 2

Status
Not open for further replies.

mts176

MIS
Apr 17, 2001
109
US
I currently have 3 seperate databases, at three office locations, that "should be" the same. We are doing an audit on our Intranet, everything from pages of code to database structure, to make sure that everything is the same. Or at least somebody in the other offices didn't do anything drastic to the database.

Is there a way I can write a Query that will return all of the Table with all of the column names and with the column data types?

Currently I am trying to use the SQL Diagram function, and it is wasting to much time and effort.

Any help would be greatly appreciated.
 
This might help

select *
from information_schema.columns
where TABLE_CATALOG = 'MY_DATABASE_NAME'
 
Fantastic, this is just what I needed. Thank you very much.
DBomrrsm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top