Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7944057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:27:00+00:00 2026-06-04T00:27:00+00:00

I am trying to execute a query against oracle with the where clause including

  • 0

I am trying to execute a query against oracle with the where clause including

BETWEEN date AND date2

First round of research shows that the oracle OLEDB provider does not allow for parameterized queries, and these should be set in variables. So I have created 3 variables. 2 to hold my dates that are populated correctly, and one to hold the query with the expression ending in:

 BETWEEN to_date('" + (DT_WSTR, 30)@[User::lastRun]  + "','DD/MM/YYYY HH:MI:SS AM') AND to_date('" + (DT_WSTR, 30) @[User::thisRun] + "','DD/MM/YYYY HH:MI:SS AM')"

When I click “Evaluate Expression” in the expression builder, it evaluates correctly to

BETWEEN to_date('1/1/1900','DD/MM/YYYY HH:MI:SS AM') AND
to_date('1/1/2010','DD/MM/YYYY HH:MI:SS AM')

And I am able to run this against oracle successfully using other tools.

But when I try to run the package, I receive:

[mySource 1] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB
error has occurred. Error code: 0x80040E51. An OLE DB record is
available. Source: “OraOLEDB” Hresult: 0x80040E51 Description:
“Provider cannot derive parameter information and SetParameterInfo has
not been called.”.

Where mySource is the OLE DB Source. It has it’s AccessMode set to “SQL Command From Variable” and SQLCommandVariable set to my query variable.

I also tried manually setting all of the Output external columns, and changing some of the values I was selecting in the query to cast away the oracle DATE datatype:

to_char(PT.CREATED_DTTM,'DD/MM/YYYY HH:MI:SS AM')

I’m still pretty new to SSIS, so I am not even sure I am looking in the correct place for the root of this error. Anyone have ideas where to go from here?

Screenshots as requested. As you can see the “from variable” query works as expected in preview mode, but when I try to execute it I get the error.

Control Flow
Data Source
Debug error

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:27:01+00:00Added an answer on June 4, 2026 at 12:27 am

    I ended up setting this in the “expressions” on the DataFlow, and NOT on the OLD DB source, making sure the variable still has “EvaluateAsExpression” = True.

    You can also see that I have updated from OLE DB to using the Attunity Oracle connector.

    DataFlowSource

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query against two databases that I'm trying to execute. The first
I am trying to execute this query against Oracle linked server, and getting the
this is my first question. I'm trying to execute a SQL query in django
I'm trying to execute a query that currently works in phpMyAdmin but it does
I'm trying to execute a query in rails 3 with the following syntax: CourseOrder.where(DATE(ordered_at)
I am trying to execute a query against a MySQL database. The query is
I'm trying to execute a query using C#. The problem is that, despite the
I'm trying to execute a query with SQL*Plus (command line) that is a VIEW.
I'm trying to execute a query that looks similar to this: SELECT <columns> FROM
I'm trying to execute a query but I get an error: Unknown table alias

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.