我已经下载了最新的英文维基百科转储(enwiki-latest-pages-articles.xml),我正在尝试使用XML批量加载将其导入SQL Server 2012。这是我用过的VBScript代码:
Dim objBL
Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload.4.0")
objBL.ConnectionString = "provider=SQLOLEDB;datasource=localhost;
database=Wikipedia;integrated security=SSPI"
objBL.ErrorLogFile = "error.log"
objBL.CheckConstraints=true
objBL.XMLFragment = True
objBL.SchemaGen = True
objBL.SGDropTables = True
objBL.Execute "export-0.8.xml", "enwiki-latest-pages-articles.xml"
Set objBL = Nothing
此VBScript应生成表并将Wikipedia XML文件加载到其中。 VBScript代码也使用wikimedia XSD schema。但是,我收到了这个错误:
schema multiple base for a derived type on lang is not supported
code: 80004005
任何有关此问题的帮助都是合适的!