I have a C# script in the ssis package as mentioned below
SqlConnection importTab = new SqlConnection(@"Server=ServerName;
Integrated Security=true;user=;pwd=;database=DBname");
I need to pass the database name (DBName) inside a variable...
May be like this
SqlConnection importTab = new SqlConnection(@"Server=ServerName;
Integrated Security=true;user=;pwd=;database="+"User::Variable" +");"
But I know I am wrong...
Integrated Security=trueAND a user ID and password in the connection string, choose one or the other.