BulkLoad.CreateInstance() failing!

  • Hi everyone

    I am having a problem with the creation of an ISQLXMLBulkLoadPtr. The odd thing is I only have trouble creating it within the server process. I can create and use the ISQLXMLBulkLoadPtr fine within the client side. One very important note is that the client and server reside on the same machine, they are just different processes.

    Here is the code I use to create:

    XML_BULKLOAD::ISQLXMLBulkLoadPtr pBulkLoader;

    if (FAILED (hr = pBulkLoader.CreateInstance (__uuidof (XML_BULKLOAD::SQLXMLBulkLoad3))))

    return hr;

    On the client I get a return of S_OK, but on the server I get a return of E_NOINTERFACE. Again both client and server run on the same machine. Thanks.

  • This was removed by the editor as SPAM

  • I got the answer. The BulkLoad had to be called on an Apartment Threaded object. I was initially trying to call it from a free threaded COM object. Thanks.

    Phil C

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply