的创建日期,我发现一个脚本来获取列信息:获取表的列
SELECT
crdate as thisFieldIsNotTheCreationOfTheField1 ,
refdate as thisFieldIsNotTheCreationOfTheField2 ,
o.name AS [TableName],
o.type,
c.name AS [ColName],
s.name AS [ColType],
c.prec,
c.scale,
c.isnullable
FROM
dbo.sysobjects AS o
INNER JOIN
dbo.syscolumns AS c ON c.id = o.id
INNER JOIN
dbo.systypes AS s ON c.xtype = s.xtype
WHERE
o.type = 'U' and o.name='TableNa'
ORDER BY
crdate
列创建日期时间是找不到的。
这怎么办?
的[查找日期/时间创建一个表的列(可能的复制https://stackoverflow.com/questions/1425487/find-the-date- time-a-tables-column-was-created) – Vadzim