07-20-09, 06:43 #1Registered User
- Join Date
- Jun 2009
Unanswered: SSIS OLE DB Command Parameter Names
I'm sure the answer to this one is simple, but google has failed me.
I'm using an OLE DB Command to perform an insert. I have the sqlCommand written as INSERT INTO myTable (column1, column2, ...) VALUES (?,?,...).
I need to have the input parameters named so that I can match the data flow to the input. I have manually done this only to find that any time I change anything all of my parameter names revert back to Param_0, Param_1, ...
THIS IS DRIVING ME CRAZY. I can't waste an hour doing cut and paste of column names every time SSIS decides to reset my parameter names. Is there a way to name the parameters in the sqlCommand? something like '?paramName' rather than simply '?'.?
Thanks in advance...
08-18-09, 16:45 #2Registered User
- Join Date
- Aug 2009
Changing Param default names in OLE DB Command not possible
I've wanted to change those silly names from Param_0, Param_1, etc. to something more meaningful as well, but it seems that SSIS has not yet evolved that far. According to the MSDN link below,
"You should not change the column names. If you change the column names, Integration Services generates a validation error for the OLE DB Command transformation."
How to: Configure the OLE DB Command Transformation
It seems such a trivial thing for Microsoft to do given all of its other accomplishments. I've had nothing but a series of small headaches like this with SSIS!
08-18-09, 18:53 #3Annie's Dog Walker
Provided Answers: 6Originally Posted by nightowl
- Join Date
- Nov 2004
- on the wrong server
Me... Heh, new guy. Can I do such and such in SSIS?
New Guy... Sure.
Me (after I take my rare occassional tour of the toolbox menu)... How would I do such and such?
New Guy... Custom Script Task. YOu have to write a script.
Me... If I have to write a script anywho, why would I use SSIS?
I ended up writing a little console app.If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry. Earnest Hemingway, A Farewell To Arms.