Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2005
    Posts
    2

    Unanswered: Remote server query

    I am getting the following error:
    OLE DB provider 'MSDASQL' reported an error.
    [OLE/DB provider returned message: [DataDirect][ODBC Sybase Wire Protocol driver]Insufficient information to connect to the data source.]
    OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize returned 0x80004005: ].

    Any idea?

    Thanks, YB

  2. #2
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    What code created this error? (Your connection string would be helpful).

  3. #3
    Join Date
    Dec 2005
    Posts
    2
    I am using the sp_addlinkedserver stored procedure and then trying to do an open query.
    Here is the code below.

    sp_addlinkedserver 'ABCDE','','MSDASQL','ABCDE',null, 'UID=username;PWD=passwd;Database=database;
    Select * into Reports.dbo.Results from openquery(ABCDE, 'select * from Result');

    Thanks.

  4. #4
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    Try breaking the database off of the @provstr parameter, and setting that in the @catalog parameter.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •