select a.name from syscolumns a left outer join sysobjects b on a.id=b.id
where b.name='tablename' order by a.colid