我们有一些业务用户将产品信息输入到Excel电子表格中,我被指定为必须想出一种方法将这些信息输入到我们的SQL Server数据库中。问题在于Excel电子表格不仅仅是一个平面表格,它们是分层次的。类似于这样:
-[Product 1] [Other fields]...
-[Maintenance item 1] [Other fields]...
-[Maintenance task 1] [other fields]...
-[Maintenance item 2] [Other fields]...
-[Maintenance task 2] [other fields]...
-[Maintenance task 3] [other fields]...
-[Product 2] [Product Description] [Other fields]...
ETC.......
产品可能有0到多个维护项,每个维护项可能有0到多个维护任务。这是数据库的结构。我需要设计一个标准的Excel模板,以便向我们的业务用户发送,让他们输入此信息,然后想办法将其导出到SQL Server中。由于数量很大,因此我需要将导入过程自动化。我该如何做?