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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Datatype of a column

Author  Topic 

dummy-girl
Starting Member

3 Posts

Posted - 2005-05-12 : 14:41:41
How do I display the datatype of a column using SQL?

Not the datatype of the column value, but the datatype of the column as mentioned when it is created.


Select unknownFunction(myColumnName) from myTableName

X002548
Not Just a Number

15586 Posts

Posted - 2005-05-12 : 14:43:08
[code]USE Northwind
GO

SELECT * FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'Orders'
GO

sp_help Orders
GO

[/code]


Brett

8-)
Go to Top of Page
   

- Advertisement -