I m 操作以下法规:
Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
objBL.ConnectionString = "provider=SQLOLEDB.1;data
source=mySQLServer;database=myDB;uid=SA;pwd=myPword"
objBL.ErrorLogFile = "c:error.log"
objBL.Execute "c:xmlschema.xml", "c:xmladdresses.xml"
Set objBL = Nothing
I m试图将一个相当庞大的XML文件装入SQ表,但I m接收错误的“Cannot在LocID栏中加上UNL的价值,表我的DB.dbo.myTable ;一栏不允许作废。 INSERT 失败
"LocID" is my primary key and Identity field. Is there a way to prevent it from inserting NULL
into this column, since I m just loading data, not moving it and I don t have ID fields in the XML file?