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
 Listing Table Data Types using TSQL

Author  Topic 

Goldmember
Starting Member

9 Posts

Posted - 2008-06-17 : 10:59:00
I can find out the data types used in my table by navigating the SSMS and right clicking the table and selecting modify.

How do I view that same output using T-SQL?

Thank you
Goldmember

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-17 : 11:03:01
Select * from information_schema.columns
where table_name='your_table'

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -