Schwimms
Schwimms

Reputation: 85

How do you use SSIS SQL logging and a Config Files using SQL Server Table?

I have created a package in SSIS where I am using the logging option of "SSIS Log provider for SQL Server". I am also using the package configuration of "SQL Server" where I store all the package connection information in a table with the exception of the connections to my log provider and my configuration provider. The reason I do this is because I assume the package can't set up a connection to the configuration settings table if I store the information to access it there. Also FYI, my package properties are set to "DontSaveSensitive".

Now I know that my package cannot connect to the config files settings that are in a table and it cannot do logging unless it has the connection information that does that. I assume this has to be done in the sql server agent, how do I set that info for the one connection?

I suppose the main question is how the heck do I set up a package with SQL logging and a config file in SQL?

Upvotes: 0

Views: 150

Answers (1)

Tab Alleman
Tab Alleman

Reputation: 31785

You create package variables for the connection information, use the variables in expressions for the connection strings in the package, and set the values of those variables when you call the package from the SQL Agent job.

At least that's one way to do it.

Another is to populate the connection string variable from a config file.

Upvotes: 1

Related Questions