sqlserver
zeromess
这个作者很懒,什么都没留下…
展开
-
数据库操作封装类:ExecSQL
using System;using System.Data;using System.Data.SqlClient;using System.Collections;using System.Collections.Specialized;using System.Configuration;using System.Web;using System.Text;using System.Security.Cryptography;using Newtonsoft.Json;using.原创 2021-03-19 10:59:54 · 586 阅读 · 0 评论 -
导出SQL Server数据库名/表名/表注释/表结构
ps:汇总网上对数据库结构的操作1.查询数据库中的所有数据库名: SELECT Name FROM Master.sys.SysDatabases ORDER BY Name2.查询某个数据库中所有的表名:SELECT Name FROM SysObjects Where XType='U' ORDER BY Name3.查询数据库中所有表的名称和表注释select * from sys.all_objects a left join sys.extended_prope...原创 2021-03-02 09:40:59 · 2994 阅读 · 0 评论