Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2004
    Posts
    164

    Unanswered: Change Connection String Property In SSIS Using t-sql

    Hi,

    I have an SSIS package that has a connection string to another server. Is there a way that i can run a sql script to alter the conenction string in the SSIS package via SSMS instead of opening the package in bi dev studio to change the connection?

    Using SQL Server 2005 Enterprise Edition

    Thanks in advance.

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    use config files for your connections that check your environment. oledb datasources. not sql server.
    “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.

  3. #3
    Join Date
    Jun 2004
    Location
    Long Island
    Posts
    696
    Maybe you can actually use the udl file and alter/sed via a script somehow and reference that in the connection ?

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Sean is spot on: Package config files are the way to go - dead simple XML files that alter properties at run-time.
    George
    Home | Blog

Posting Permissions

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