'SQLOLEDB' supplied inconsistent metadata when using opendatasource

  • When I use opendatasource() and try to get data from the sysobjects table I get

    OLE DB provider 'SQLOLEDB' supplied inconsistent metadata for a column.

    I'm guessing that by connecting to the datasource I'm changing the table data or something???

    Thoughts appreciated.

    ST

  • Is there a way to get info from the remote server's sysobjects table using "opendatasource" ?

    Thanks

    ST

  • Possibly I'm not being clear. I have a system which needs to get information from another SQL database. It's an admin tool. I want to be able to pass the application connection information to the database it's inspecting.

    In my SQL database I have a query which says:

    select id, name from

    opendatasource('sqloledb', connString).myDB.dbo.sysobjects

    When I do this I get the mentioned error. IS this simply not allowed? Am I doing something wrong? Can anyone else make this connection? Can anyone else get the same error?

    Thanks

    ST

  • What is the sqlserver version of the datasource?

    I've gotten that error sometimes on sql server 7.

    (fix, http://www.sqlservercentral.com/articles/Bugs/changingcolumn/618/)

  • SQL 2000 for both the calling and called DB

    Thanks

    ST

Viewing 5 posts - 1 through 4 (of 4 total)

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