![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Hi Sergei, I think the MS query parser struggles to understand complex queries - in my experience this is particularly if there are any sub-queries or derived tables in them. *I have had limited success with reformatting these queries in the past, literally by moving parts of the WHERE clause around - I either moved all the parameterised bits either to the top or the bottom of the where clause if I remember correctly. This was basic trial-and-error though, I simply had time and was trying to see what the parser would or would not accept. I agree that the property expression option is not a good one with a long query. *In-fact I believe there is a fixed maximum number of characters that SSIS allows you to put into this box, so you're likely to run out of characters. *The other option (as suggested in the error message) is to save the entire SQL statement to a package variable, and set the task to get it's command string from the variable. *The best way to do this is using a simple script task to build up your string, and then assigning it to a variable. Good luck! J |
![]() |
| Thread Tools | |
| Display Modes | |
| |