人生无止境,奋斗不息
select b.name tablename,a.name as columnnamefrom sys.columns a,sys.objects b,sys.types cwhere a.object_id=b.object_idand a.user_type_id=c.user_type_idand b.type='u'order by b.name