Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. XMLBulkCopy Error in VBScript

XMLBulkCopy Error in VBScript

Scheduled Pinned Locked Moved Visual Basic
databasehelpsql-servercomsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    priyaahh
    wrote on last edited by
    #1

    Hi Friends, I am trying to do Bulkcopy of xml records to SQL Server 2008. I am using the below code. But I am getting error "

    ActiveX component can't create object SQLXMLBulkLoad.SQLXMLBulkLoad"

    This is my code:

    Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
    objBL.ConnectionString = "server=Testdb;Database=CApp;UID=dbo;Password=dbo;LANGUAGE=us_english"
    objBL.ErrorLogFile = "c:\error.log"
    objBL.Execute "c:\customermapping.xml", "c:\customers.xml"
    Set objBL = Nothing

    Please help. Thanks and Regards, R. Sangeetha Priya.

    S 1 Reply Last reply
    0
    • P priyaahh

      Hi Friends, I am trying to do Bulkcopy of xml records to SQL Server 2008. I am using the below code. But I am getting error "

      ActiveX component can't create object SQLXMLBulkLoad.SQLXMLBulkLoad"

      This is my code:

      Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
      objBL.ConnectionString = "server=Testdb;Database=CApp;UID=dbo;Password=dbo;LANGUAGE=us_english"
      objBL.ErrorLogFile = "c:\error.log"
      objBL.Execute "c:\customermapping.xml", "c:\customers.xml"
      Set objBL = Nothing

      Please help. Thanks and Regards, R. Sangeetha Priya.

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      From this article : XML Bulk Load Examples (SQLXML 4.0)[^] It would appear that you need to change

      Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")

      To

      Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad.4.0")

      Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups