标签:
Select count(*) From yourdatabase.sys.columns where object_id = OBJECT_ID(‘yourdatabase.dbo.tablename‘)
在任一数据库中获取任一数据表的栏位数
原文地址:http://www.cnblogs.com/MatrixBlogs/p/4795463.html