View Single Post
  #3 (permalink)  
Old 03-01-2007, 11:19 PM
Avaneesh
 
Posts: n/a
Default MS SQL answer. Re: How to get table structure via SQL?

[sql]
select table_name,ordinal_position,column_name,data_type, is_nullable,character_maximum_length from
information_schema.columns where table_name like '%TABLENAME%'
order by ordinal_position
[b]AVANEESH[b]
[/sql]
Reply With Quote