Cообщество разработчиков на платформе Microsoft > Форумы > SQL Server Data Access > Openrowset to Oracle doesnt work after upgrading to SQL Server 2005
Задайте вопросЗадайте вопрос
 

ВопросOpenrowset to Oracle doesnt work after upgrading to SQL Server 2005

  • 28 июня 2007 г. 11:33Araki66 Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    Hi,

     

    I just upgraded to SQL server 2005 and some of my Openrowset to Oracle doesnt work. I found out that the issue occur with field with structure Numeric.

    The issue is not solve even when I try to cast the field to varchar. sometimes it succeeded and sometimes I get error 7320 & 7321.

    I'm using Oracle connector from SQL to Oracle.

    I've 64 bit SQL Server.

    Attach the code, the Numeric field is SCORE.

     

    select *

    FROM

    OPENROWSET('ORAOLEDB.ORACLE',aaaa;bbbb;cccc,

    'SELECT AUDIT_OPRID, AUDIT_STAMP, AUDIT_ACTN,EMPLID, ACCOMPLISHMENT, MAJOR_CODE,

    CAST(SCORE AS Varchar(250))

    FROM SYSADM.PS_RTA_ACCOMPLISHM WHERE 1=2')

     

    Anyone can advice on resolution?

     

    Thanks,

    Assaf

Все ответы