只说原理了,具体 可以自己使用程序去生成htm或word文档. 1.首先获取所有的表 SELECT name, id From sysobjects WHERE xtype = 'u' ORDER BY name ASC 2.根据表名查询字段信息 select syscolumns.name, syscolumns.length, systypes.name as typename, sys.extended_properties.[value] AS tname,syscolumns.…
1.参考C#代码 using Help.DBAccessLayer.Business; using Help.DBAccessLayer.Model.SqlGenerator; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using Syst…