In T-SQL (SQL Server 2000). How can I list all tables and columns in a database? Also, in a separate query is there a way to list all columns along with data type and constrai
Please check out the information schema.
select * from MyDatabaseName.information_schema.columns order by table_name, ordinal_position