在任一数据库中获取任一数据表的栏位数 Select count(*) From yourdatabase.sys.columns where object_id = OBJECT_ID('yourdatabase.dbo.tablename')