Linked Server To Lotus Notes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ProgrammerGal

    Linked Server To Lotus Notes

    I am struggling with moving data to Lotus Notes from SQL Server.

    I am hoping someone has done this and can point me in the right
    direction.

    I have a stored procedure that collects my data into a temp table on
    sql server and I want to move that data into a Lotus Notes table.

    I am select rows from #tmpCases on SQL Server and trying to put them
    into CaseName on Lotus Notes.

    Here is my SQL moving just one row of data:
    INSERT INTO OPENQUERY([Notes_DRS_CaseN ame DEV],
    'select
    DeleteDate,
    CaseName,
    CaseNum,
    Jurisdiction,
    Entity,
    OCFirm,
    OCName,
    OCAddress,
    OCCity,
    OCState,
    OCZIP,
    OCMainPhone,
    OCDirectPhone,
    OCFAX,
    CaseStatus,
    CasePurgeFlag,
    CaseCloseDate,
    CasePurgeDate,
    CaseRetentionDa te,
    HoldReviewDate,
    ReasonForHold,
    UpdatedTracker
    from CaseName
    where 1=2')
    Select
    Null as DeleteDate,
    CaseName,
    CaseNum,
    Jurisdiction,
    Entity,
    OCFirm,
    '' as OCName,
    OCAddress,
    OCCity,
    OCState,
    OCZip,
    OCMainPhone,
    '' as OCDirectPhone,
    OCFax,
    CaseStatus,
    CasePurgeFlag,
    CaseCloseDate,
    CasePurgeDate,
    CaseRetentionDa te,
    null as HoldReviewDate,
    null as ReasonForHold,
    null as UpdatedTracker
    from #tmpCases
    where casenum=055344 /* where clause returns one row */

    This is the error I get:
    Server: Msg 7390, Level 16, State 1, Line 1
    The requested operation could not be performed because the OLE DB
    provider 'MSDASQL' does not support the required transaction interface.
    OLE DB error trace [OLE/DB Provider 'MSDASQL' IUnknown::Query Interface
    returned 0x80004002].

Working...