SSIS 2005 errors...glad many go away with SSIS 2008

 

It’s amazing to me on just how much better, nicer running, and less clunky SQL Server Integration Services (SSIS) 2008 is over its’ SQL Server 2005 counterpart. Every time I (have to) open it up – usually because client versioning and demands – I am reminded that, wow, wish I were using the latest version!  I haven’t used it in probably 9 months, so I’m developing in SSIS 2005 and I get an error trying to use variables in the OLEDB connection task. If I had read my earlier blog on the subject, I might have used expresssions rather than the parameter mapping function with an OLE source. But I wanted to try it this way. 

 

So I wire up, throw in a couple of question mark placeholders for them (?), and I get the following error:

 

I do what everyone else might do and Google! it, but find mostly nothing. So I set out to figure out a solution since I didn't see one on Google!, and I think I have one. What you need to do is the following:

  • Paste your TSQL code in the OLEDB source editor.
  • Include your place holders (question marks) where your variables will be placed.
  • Click on the "Build Query" button. You'll see a familiar query builder box
  • Click the arrow "Run" button
  • The dialog box "Query Parameters" opens up; there should be a placeholder for each of your parameters
  • Fill in a value for each.  The dates in mine can be any value that you choose.
  • Click OK and your query will run.  Click OK again and you're back to the OLE DB Source Editor.
  • Click your parameter button again. Success! Your variables are now mapped.

 

 

Lee

 

--------------------------

'Cause I'm a karate man! And a karate man bruises on the inside! They don't show their weakness. But you don't know that because you're a big Barry White looking ******! So get outta my face!

 


Reference

Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from variable" access mode, in which the entire SQL command is stored in a variable.

Additional information
---> Provider cannot derive parameter information and SetParameterInfo has not been called. (Microsoft OLE DB Provider for Oracle).


Posted in: SSIS  Tags:
blog comments powered by Disqus

by Lee Everest, M.S.

Poll

Do you use Azure or cloud in your organization?



Show Results

Ads

Search


Month List

Calendar

«  February 2012  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2012 Lee Everest's SQL Server, etc. weblog