0
  • Linked Server Name:CBSLINKED //Oracle 10g
  • Name of Database if oracle : CBSIVRDB
  • Name of Stored Procedure : FIU_INSERT
  • having parameter as (FromDate,ToDate)
  • My DB: SQL server R2

execute ('call CBSIVRDB.FIU_INSERT ('' TO_DATE(''01-JUN-2014'',DD-MMM-YYYY) '',''TO_DATE(''30-JUN-2014'',DD-MMM-YYYY)'') ') at CBSLINKED

Error:

OLE DB provider "MSDAORA" for linked server "CBSLINKED" returned message "ORA-00907: missing right parenthesis"

3
  • You are missing the '' in front of DD-MMM. But here might be more problems though. Commented Sep 12, 2014 at 10:21
  • you mean like this 'DD-MMM-YYYY' Commented Sep 12, 2014 at 10:22
  • I have posted an answer for you. Commented Sep 12, 2014 at 10:26

1 Answer 1

1

Try this:

CBSIVRDB.FIU_INSERT (TO_DATE(''01-JUN-2014'',''DD-MON-YYYY''),TO_DATE(''30-JUN-2014'',''DD-MON-YYYY''))

or more precisely

execute ('call CBSIVRDB.FIU_INSERT (TO_DATE(''01-JUN-2014'',''DD-MON-YYYY''),TO_DATE(''30-JUN-2014'',''DD-MON-YYYY''))') at CBSLINKED
Sign up to request clarification or add additional context in comments.

1 Comment

OLE DB provider "MSDAORA" for linked server "CBSLINKED" returned message "ORA-01821: date format not recognized ".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.