SSIS how to set connection string dynamically from a config file

First add a variable to your SSIS package (Package Scope) – I used FileName, OleRootFilePath, OleProperties, OleProvider. The type for each variable is “string”. Then I create a Configuration file (Select each variable – value) – populate the values in the configuration file – Eg: for OleProperties – Microsoft.ACE.OLEDB.12.0; for OleProperties – Excel 8.0;HDR=, OleRootFilePath … Read more

What is the point of “Initial Catalog” in a SQL Server connection string?

If the user name that is in the connection string has access to more then one database you have to specify the database you want the connection string to connect to. If your user has only one database available then you are correct that it doesn’t matter. But it is good practice to put this … Read more

Format of the initialization string does not conform to specification starting at index 0

Format of the initialization string does not conform to specification starting at index 0 Web.config : <connectionStrings> <add name=”TestDataConnectionString” connectionString=”Data Source=.\SQLExpress;Initial Catalog=TestData;User ID=satest;Password=satest” /> </connectionStrings> In aspx.cs Page the code must be written in the below format : SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings[“TestDataConnectionString”].ToString());