x
login about faq Site discussion (meta-askssc)

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 '11 at 08:13 AM in Default

sam21 gravatar image

sam21
62 3 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



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x1835
x751
x600
x224

asked: Nov 04 '11 at 08:13 AM

Seen: 810 times

Last Updated: Nov 04 '11 at 08:13 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.