Posted By

pauliehaha on 02/09/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Plastyksouljah


Select DataBase Schema


 / Published in: SQL
 

  1. SELECT TABLE_CATALOG
  2. , TABLE_SCHEMA
  3. , TABLE_NAME
  4. , ORDINAL_POSITION
  5. , COLUMN_NAME
  6. , DATA_TYPE
  7. , CHARACTER_MAXIMUM_LENGTH
  8. , COLUMN_DEFAULT
  9. , IS_NULLABLE
  10. , COLLATION_NAME
  11. FROM
  12. INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = (N'Sales')
  13. ORDER BY ORDINAL_POSITION

Report this snippet  

You need to login to post a comment.