tc3596
Technical User
- Mar 16, 2001
- 283
In trying to use SQLXMLBulkLoad, it requires a schema and an XML file. The person sending me the data for import only gives me the one file shown below. Should I be asking for a separate schema file from him, or is SQLXMLBulkLoad going to grab the schema from the location specified in the XML file? If the latter is correct, do I just use the same file for both the schema and XML file as listed here....
Set objAccess = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
objAccess.ConnectionString = "PROVIDER=SQLOLEDB;SERVER=dysa107365-02;" & _
"DATABASE=demodata;INTEGRATED SECURITY=sspi;"
objAccess.Execute "C:\Agile.xml", "C:\Agile.xml",
Set objAccess = Nothing
Here is a snippet of my XML file....
<?xml version="1.0" encoding="UTF-8" ?>
- <AgileData xmlns=" xmlns:xsi=" xmlns:xsd=" xsi:schemaLocation=" - <ChangeOrders uniqueId="6000:6333487">
- <CoverPage>
<Number>C00019</Number>
<Status>CM Notify</Status>
<ChangeType>Engineering Change</ChangeType>
<ChangeCategory>Routine</ChangeCategory>
<DescriptionOfChange>Macola testing - updated change</DescriptionOfChange>
<ReasonForChange>Macola testing</ReasonForChange>
<ReasonCode>10 - PCB Change</ReasonCode>
<Workflow>EC_ROUTINE_WORKFLOW</Workflow>
<Originator>Stafford, Roy (rstafford)</Originator>
<DateOriginated>2008-06-25T18:10:12Z</DateOriginated>
<DateReleased>2008-06-25T18:21:34Z</DateReleased>
</CoverPage>
.....................
Thank you for your input.
Set objAccess = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
objAccess.ConnectionString = "PROVIDER=SQLOLEDB;SERVER=dysa107365-02;" & _
"DATABASE=demodata;INTEGRATED SECURITY=sspi;"
objAccess.Execute "C:\Agile.xml", "C:\Agile.xml",
Set objAccess = Nothing
Here is a snippet of my XML file....
<?xml version="1.0" encoding="UTF-8" ?>
- <AgileData xmlns=" xmlns:xsi=" xmlns:xsd=" xsi:schemaLocation=" - <ChangeOrders uniqueId="6000:6333487">
- <CoverPage>
<Number>C00019</Number>
<Status>CM Notify</Status>
<ChangeType>Engineering Change</ChangeType>
<ChangeCategory>Routine</ChangeCategory>
<DescriptionOfChange>Macola testing - updated change</DescriptionOfChange>
<ReasonForChange>Macola testing</ReasonForChange>
<ReasonCode>10 - PCB Change</ReasonCode>
<Workflow>EC_ROUTINE_WORKFLOW</Workflow>
<Originator>Stafford, Roy (rstafford)</Originator>
<DateOriginated>2008-06-25T18:10:12Z</DateOriginated>
<DateReleased>2008-06-25T18:21:34Z</DateReleased>
</CoverPage>
.....................
Thank you for your input.