欄位是否存在

select count(name) from syscolumns

where id=(select id from sysobjects where name='表格名') and name='欄位名'

傳回0則欄位不存在