x

SSIS Olebd source Sql Command Union Error

Hi ,

I am using SQl Command access mode in SSIS oledb Source, I have to get current and previous month data from table My command is like : Select M.prd_dt,M.Order_id,M.Name from Table M where M.prd_dt=? Union Select MI.prd_dt,MI.Order_id,MI.Name from Table MI where MI.prd_dt=? order by M.OrderID

When I click parameter its says parameter can not be created..... and I am not able to parse.. Whereas on my management studio I am able to run this query..

please suggest..
more ▼

asked Nov 04, 2011 at 08:13 AM in Default

sam21 gravatar image

sam21
62 5 5 7

(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1951
x946
x742
x293

asked: Nov 04, 2011 at 08:13 AM

Seen: 1429 times

Last Updated: Sep 25, 2013 at 04:24 AM