Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    22

    Unanswered: SSIS OLE DB Command Parameter Names

    Hi folks,

    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...

  2. #2
    Join Date
    Aug 2009
    Posts
    3

    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!

    Empathetically,

    Dave

  3. #3
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    Quote Originally Posted by nightowl
    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!
    A conversation from the other day...

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •