Hello:
I use below sql statements to get certain table's field type:
use ezplan
SELECT A.colid,
A.name as COLUMN_NAME,
C.name as DATA_TYPE,
A.length as DATA_LENGTH,
B.value as COLUMN_DESCRIPTION
FROM dbo.syscolumns A
left join dbo.sysproperties B on A.id = b.id and A.colid = B.smallid and B.name='MS_Description'
left join dbo.systypes C on A.xtype = C.xtype
WHERE A.id = (select id
from dbo.sysobjects
where name = 'SpecDetail' and type = 'U')
and A.name='DefaultStr'
ORDER BY A.colid
but when I try to upgrade to SQL server 2005, the 'dbo.sysproperties' does not exists any more !
How could I substitute dbo.sysproperties for alternative statement?
Please help me !
Any suggestion would be appreciated.
Regards
Carl