select count(1) from syscolumns where id = object_id('tbname')