RE: Field count in a table
To get a list of the columns in a specific table: declare @TableName varchar(150) -- select sc.* from syscolumns sc inner join sysobjects so on so.id = sc.id inner join sysindexes si on si.id = so.id where si.indid < 2 and so.type = 'u' and si.name = @TableName
2003-07-25