简体   繁体   中英

Add Description From Excel File to Columns description in SQL

我有一个数据库(在SQL Server 2008 SP3中)包括许多表,每个表都有很多列,另一方面,我有一个Excel文件,其中包含我的任何数据库列的说明(在SQL Server Management Studio中,当您想创建一个表,在设计模式下,属性窗口中的每个列都有一个描述字段),所以我很有趣地将此(Excel)描述添加到DB中的列描述中(当然不是手工并且一个个地)一个对此有任何想法吗?

Knock up some VBA to iterate through the Excel data, calling the database for each table/column.

The SQL Server stored procedure you want (if I understand correctly) is sp_addextendedproperty to add comments about objects in SQL Server

You can get help from some references given below: please have a look over there, thanks

a. Reading and Writing Excel

b. Reading Excel and then save to your DB

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM