I am using SSDT and working on a simple SSIS package.
The Control flow: 1. A Foreach Loop Container and seek a folder exist a "importdata{}.csv" file or not. 2. If found, a script task will set variables: - User::FullPath = (e.g C:\importdata{}.csv) - User::varFileNameNoExt = (importdata{}) without extension. The {} is possible in "toy","game","food". 3. Go to dataflow
The Data Flow: 1. Flat File Source with a flat file connection, the connection string is varible and mapped connection string expression. 2.ADO.NET Destination , insert data.
My question is how can i set the ADO.NET Destination [TableOrViewName] Property in variable? Assume the table : importdatatoy,importdatagame and importdatafood is created on SQL Server.
I try to set as "dbo"."[User::varFileNameNoExt]" ,but it cannot resolve the table name on runtime.