SSIS

SSIS

Top Interview Questions

About SSIS

 

What is SSIS?

SQL Server Integration Services (SSIS) is a powerful data integration and workflow automation tool provided by Microsoft as part of the SQL Server suite. SSIS is designed to perform data extraction, transformation, and loading (ETL) operations efficiently across heterogeneous sources and destinations.

In simpler terms, SSIS allows organizations to extract data from multiple sources, transform it according to business rules, and load it into target systems such as data warehouses, databases, or analytical platforms. Beyond ETL, SSIS supports workflow automation, data migration, data cleansing, and task scheduling, making it an essential tool for enterprise data management.


Importance of SSIS

In modern organizations, data comes from a variety of sources, including relational databases, flat files, Excel spreadsheets, cloud services, and APIs. Without a robust integration platform like SSIS, consolidating, cleaning, and transforming this data would be cumbersome and error-prone. SSIS provides:

  1. Efficient Data Handling: Handles large volumes of data efficiently and reliably.

  2. Data Transformation: Allows complex transformations such as joins, lookups, aggregations, and conditional splits.

  3. Workflow Automation: Automates repetitive tasks like database backups, report generation, or file transfers.

  4. Data Quality Management: Enables data cleansing and validation to ensure consistency.

  5. Integration with SQL Server: Provides seamless connectivity with SQL Server databases and other Microsoft tools like Power BI and Azure.


Key Features of SSIS

  1. ETL Capabilities:
    SSIS is primarily an ETL tool. It extracts data from various sources, transforms it according to business rules, and loads it into target systems.

  2. Workflow Management:
    SSIS allows developers to design workflows with tasks such as executing SQL statements, sending emails, running scripts, and managing files.

  3. Data Transformation:
    Transformations include merge, lookup, pivot, unpivot, derived columns, data conversion, sorting, and aggregations, enabling sophisticated data manipulation.

  4. Connectivity:
    Supports a wide range of data sources such as SQL Server, Oracle, MySQL, Excel, flat files, SharePoint, cloud services, and OData feeds.

  5. Error Handling and Logging:
    SSIS includes robust error handling, logging, and event handling mechanisms to monitor workflow execution and capture failures.

  6. Scalability and Performance:
    Capable of handling large datasets efficiently using parallel execution, buffers, and optimized memory management.

  7. Scripting and Custom Components:
    Developers can write custom scripts in C# or VB.NET or create custom components to extend SSIS functionality.

  8. Integration with Azure:
    Modern SSIS versions integrate with Azure Data Factory and cloud storage, allowing hybrid on-premises and cloud ETL solutions.


SSIS Architecture

SSIS follows a modular architecture that supports scalability and efficient execution. Its main components include:

1. Control Flow

  • The control flow defines the workflow or sequence of tasks in a package.

  • Tasks include SQL execution, file system operations, sending emails, executing scripts, or running data flows.

  • Control flow supports precedence constraints, allowing conditional execution based on task success, failure, or custom expressions.

2. Data Flow

  • The data flow handles ETL operations within an SSIS package.

  • It consists of three primary components:

    • Source: Extracts data from a source (database, file, or API).

    • Transformation: Applies transformations like lookup, join, sort, aggregate, or derived column operations.

    • Destination: Loads the transformed data into a target system.

3. Connection Managers

  • Connection managers define connections to databases, files, or other services.

  • They centralize connection details, allowing packages to be portable and easily configurable.

4. Event Handlers

  • Event handlers respond to events such as task failure, completion, or warnings.

  • They can trigger actions like sending email notifications or logging errors for troubleshooting.

5. Logging

  • SSIS provides built-in logging to capture package execution details.

  • Logs can be written to files, SQL Server tables, Windows Event Logs, or custom destinations.


Components of SSIS

SSIS packages use various components to implement workflows:

  1. Tasks – Actions performed in control flow (e.g., Execute SQL Task, File System Task, Send Mail Task).

  2. Transformations – Operations in data flow for manipulating data (e.g., Lookup, Conditional Split, Merge Join).

  3. Containers – Group tasks for organization and control (e.g., Sequence Container, For Loop Container, ForEach Loop Container).

  4. Variables – Store temporary values, configuration parameters, or dynamic data.

  5. Precedence Constraints – Define the execution order of tasks based on conditions.

  6. Parameters – Allow external values to configure package behavior without modifying the package.


Use Cases of SSIS

  1. Data Warehousing:
    Consolidating data from multiple operational databases into a centralized warehouse for analytics.

  2. Data Migration:
    Moving data from legacy systems to modern databases or cloud platforms.

  3. Data Cleansing:
    Removing duplicates, correcting errors, and standardizing data for consistency.

  4. ETL for Reporting:
    Preparing data for business intelligence tools like Power BI, SQL Server Reporting Services (SSRS), or Tableau.

  5. Automation of Business Processes:
    Automating tasks such as backups, file transfers, email notifications, and batch processing.

  6. Integration with Cloud Services:
    Extracting data from on-premises systems and loading it into cloud databases, storage accounts, or data lakes.


Advantages of SSIS

  1. High Performance: Efficient handling of large datasets with memory optimization and parallel processing.

  2. Ease of Use: Drag-and-drop interface in SQL Server Data Tools (SSDT) makes designing ETL packages intuitive.

  3. Versatile Data Source Support: Connects to databases, files, APIs, and cloud services.

  4. Automation: Supports workflow automation and task scheduling.

  5. Error Handling: Built-in error handling and logging improve package reliability.

  6. Integration with Microsoft Ecosystem: Works seamlessly with SQL Server, Azure, Power BI, and other Microsoft tools.


Challenges of SSIS

  1. Learning Curve: Understanding advanced transformations and scripting may require expertise in ETL concepts and SQL.

  2. Limited Cross-Platform Support: Primarily designed for Microsoft environments.

  3. Complex Package Management: Large projects with many packages require careful versioning and configuration management.

  4. Performance Tuning: Inefficient transformations, large data volumes, or improper buffer settings can impact performance.

  5. Maintenance: Packages may require regular updates for source/target changes, increasing maintenance overhead.


Best Practices for SSIS Development

  1. Use Modular Packages: Break complex ETL logic into smaller reusable packages.

  2. Parameterize Packages: Avoid hardcoding values; use parameters and configuration files for flexibility.

  3. Use Logging and Error Handling: Implement logging and event handlers to monitor execution and handle failures.

  4. Optimize Data Flow: Minimize transformations in data flow and leverage staging tables for large datasets.

  5. Version Control: Store SSIS packages in source control systems like Git for collaboration and auditing.

  6. Testing: Validate ETL packages with sample and production data to ensure accuracy and performance.


Conclusion

SQL Server Integration Services (SSIS) is a robust, versatile, and high-performance ETL and workflow automation platform. It enables organizations to extract, transform, and load data efficiently from diverse sources while automating business processes. SSIS is widely used in data warehousing, business intelligence, cloud integration, and process automation, making it an indispensable tool in the enterprise data ecosystem.

With features like workflow management, error handling, logging, and seamless integration with Microsoft technologies, SSIS remains a preferred solution for organizations aiming to maintain data quality, streamline operations, and support informed decision-making. By following best practices and leveraging its full capabilities, businesses can harness the true power of SSIS for modern data integration challenges.

Fresher Interview Questions

 

1. What is SSIS?

Answer:
SSIS (SQL Server Integration Services) is a data integration and ETL tool in Microsoft SQL Server. It is used for extracting, transforming, and loading (ETL) data from different sources to destinations.


2. What are the key features of SSIS?

Answer:

  • Extract data from multiple sources (SQL Server, Oracle, Excel, flat files).

  • Transform data using built-in transformations.

  • Load data into various destinations (databases, files, data warehouses).

  • Workflow automation with tasks and precedence constraints.

  • Event handling and error logging.


3. What are the main components of SSIS?

Answer:

  1. Control Flow: Defines the workflow of tasks and containers.

  2. Data Flow: Handles ETL operations (extract, transform, load).

  3. Event Handlers: Define responses to events during execution.

  4. Package Explorer: Provides overall view of the package.

  5. SSIS Toolbox: Provides tasks and transformations.


4. What is the difference between Control Flow and Data Flow in SSIS?

Feature Control Flow Data Flow
Purpose Workflow management Data extraction, transformation, and loading
Tasks Execute SQL, send emails, scripts Source, transformation, destination
Execution Sequence of tasks Row-by-row processing
Example Execute a SQL task then a File system task Transform Excel data and load into SQL Server

5. What is a package in SSIS?

Answer:
A package is a collection of tasks, connections, event handlers, and configurations designed to perform a complete ETL process. It is the basic unit of deployment in SSIS.


6. What are the types of SSIS containers?

Answer:

  1. Sequence Container: Groups tasks sequentially.

  2. For Loop Container: Repeats tasks based on a condition.

  3. Foreach Loop Container: Iterates over collections (files, rows, variables).


7. What are SSIS tasks?

Answer:
Tasks are the units of work in Control Flow. Common tasks:

  • Data Flow Task: ETL operations.

  • Execute SQL Task: Run SQL queries or stored procedures.

  • File System Task: Copy, move, delete files.

  • Script Task: Custom logic using C# or VB.NET.

  • Send Mail Task: Send emails after execution.


8. What is a connection manager in SSIS?

Answer:
Connection managers define connections to data sources and destinations (SQL Server, Excel, flat files, Oracle, etc.). Each task or transformation uses a connection manager to access data.


9. What are precedence constraints in SSIS?

Answer:
Precedence constraints define the workflow execution order between tasks based on:

  • Success: Execute next task if previous succeeds.

  • Failure: Execute next task if previous fails.

  • Completion: Execute regardless of success or failure.

  • Can also include expressions or conditions for dynamic execution.


10. What are variables in SSIS?

Answer:
Variables store dynamic values during package execution, such as:

  • File paths

  • SQL query strings

  • Counters or flags
    They can be scoped at package, container, or task level.


11. What are parameters in SSIS?

Answer:
Parameters are read-only values passed to a package at runtime. Unlike variables, they cannot be changed during execution, making them suitable for deployment and configuration.


12. What are expressions in SSIS?

Answer:
Expressions are dynamic calculations or property assignments using SSIS functions. They allow tasks, variables, and connections to change values at runtime.


13. What is a Data Flow Task in SSIS?

Answer:
Data Flow Task is responsible for moving and transforming data from source to destination. It contains:

  • Sources: Extract data (OLE DB Source, Flat File Source).

  • Transformations: Modify data (Lookup, Derived Column, Aggregate).

  • Destinations: Load data (OLE DB Destination, Flat File Destination).


14. What are SSIS transformations?

Answer:
Transformations manipulate and modify data in Data Flow. Common transformations:

  • Lookup Transformation: Fetch reference data from another source.

  • Derived Column: Create or modify columns.

  • Data Conversion: Convert data types.

  • Conditional Split: Route data based on conditions.

  • Aggregate: Perform sum, count, avg, etc.


15. What is a Lookup Transformation?

Answer:
Lookup Transformation matches input data with reference data in another dataset and returns corresponding values. Can be used for:

  • Data validation

  • Fetching foreign key values

  • Replacing missing or default values


16. What is a Conditional Split Transformation?

Answer:
Conditional Split Transformation routes rows to different outputs based on defined conditions, similar to an IF-ELSE statement.


17. What is a Derived Column Transformation?

Answer:
Derived Column Transformation creates new columns or updates existing columns by applying expressions, functions, or calculations.


18. What is a Slowly Changing Dimension (SCD) in SSIS?

Answer:
SCD is a dimension table in data warehousing where attribute values change over time. Types:

  • Type 1: Overwrites old data (no history).

  • Type 2: Maintains full history with new rows.

  • Type 3: Maintains limited history with additional columns.


19. What is an SSIS package configuration?

Answer:
Package configurations allow dynamic property assignments during runtime, useful for:

  • Changing connection strings

  • Setting variable values

  • Switching between environments (Dev, QA, Prod)


20. What are the types of SSIS package configurations?

Answer:

  1. XML Configuration File

  2. Environment Variable

  3. Registry Entry

  4. Parent Package Variable

  5. SQL Server Table


21. What is an Event Handler in SSIS?

Answer:
Event Handlers define tasks to execute when specific events occur, like OnError, OnWarning, or OnPostExecute. Useful for logging, notifications, or cleanup.


22. How do you handle errors in SSIS?

Answer:

  • Use Event Handlers for logging or notifications.

  • Set FailPackageOnFailure or MaximumErrorCount properties.

  • Redirect rows to Error Output in Data Flow.


23. What is a checkpoint in SSIS?

Answer:
Checkpoints allow packages to restart from the point of failure instead of rerunning the entire package. Steps must have FailPackageOnFailure enabled for checkpoints to work.


24. How do you improve SSIS package performance?

Answer:

  • Use Fast Load option in OLE DB Destination.

  • Minimize transformations.

  • Use batch processing for large datasets.

  • Avoid unnecessary data conversions.

  • Disable logging if not needed.


25. What is the difference between OLE DB Source and Flat File Source?

Feature OLE DB Source Flat File Source
Source Database Text or CSV files
Connectivity OLE DB connections File system path
Usage Query tables/views Read external files

26. What is the difference between Merge and Union All Transformation?

Transformation Difference
Merge Requires sorted inputs, combines two datasets
Union All Combines multiple datasets without sorting

27. What is the difference between Full Load and Incremental Load in SSIS?

Load Type Description
Full Load Loads entire dataset from source
Incremental Load Loads only new or changed data

28. What is a Script Task and Script Component in SSIS?

Answer:

  • Script Task: Used in Control Flow for custom logic.

  • Script Component: Used in Data Flow as a source, transformation, or destination with custom .NET code.


29. What is SSIS Catalog (SSISDB)?

Answer:
SSIS Catalog (SSISDB) is a central storage and management repository for SSIS projects and packages in SQL Server. It supports deployment, logging, and execution monitoring.


30. How do you deploy SSIS packages?

Answer:

  • Deploy to SSIS Catalog (SSISDB) in SQL Server.

  • Deploy to File System or MSDB database.

  • Use Project Deployment Model or Package Deployment Model.


31. What is the difference between Project Deployment Model and Package Deployment Model?

Feature Project Deployment Package Deployment
Deployment Entire project Individual packages
Configurations Parameters & Environments Config files/variables
Logging Centralized Package level

32. What are SSIS expressions and variables used for in dynamic ETL?

Answer:

  • Build dynamic file paths.

  • Set SQL queries dynamically.

  • Control conditional flows.

  • Pass values to destinations or scripts.


33. What is the difference between Execute SQL Task and Data Flow Task?

Feature Execute SQL Task Data Flow Task
Purpose Run SQL queries or stored procedures ETL operations
Input/Output Usually single dataset Row-by-row transformations
Location Control Flow Data Flow

34. How do you handle slowly changing dimensions in SSIS?

Answer:
Use Slowly Changing Dimension (SCD) Transformation, configure columns as Type 1, Type 2, or Type 3, and define update or insert logic.


35. What is SSIS logging?

Answer:
Logging captures package execution details (start time, end time, errors) for monitoring and debugging. Can log to:

  • SQL Server table

  • Text file

  • Windows Event Log

  • XML file


36. What is a Foreach Loop Container in SSIS?

Answer:
Used to iterate over a collection, such as files in a folder, rows in a dataset, or items in an array, performing tasks repeatedly.


37. What is the difference between OnError and OnPostExecute event handlers?

Event Description
OnError Triggered when a task fails
OnPostExecute Triggered after task completion (success or failure)

38. How do you implement incremental load in SSIS?

Answer:

  • Use Lookup Transformation to identify new or updated rows.

  • Use Conditional Split to separate inserts and updates.

  • Load data accordingly to target tables.


39. How do you implement error handling in Data Flow Task?

Answer:

  • Configure Error Output in transformations and destinations.

  • Redirect rows to error tables for analysis.

  • Log errors using Event Handlers.


40. How do you automate SSIS package execution?

Answer:

  • Use SQL Server Agent Jobs to schedule packages.

  • Use DTEXEC command-line utility for manual or script-based execution.

  • Pass parameters at runtime for dynamic execution.


41. How do you connect SSIS to different sources like Oracle or Excel?

Answer:

  • Use OLE DB Connection Manager for Oracle/SQL Server.

  • Use Excel Connection Manager for Excel files.

  • Use Flat File Connection Manager for text/CSV files.

Experienced Interview Questions

 

1. SSIS Basics

Q1: What is SSIS and its primary use?
Answer:

  • SSIS (SQL Server Integration Services) is a data integration and ETL tool from Microsoft.

  • Primary use: Extract, Transform, Load data from multiple sources to destinations.

  • Supports data migration, workflow automation, and data cleansing.


Q2: What are the main components of SSIS?
Answer:

  1. Control Flow – Manages workflow of tasks (ForEach Loop, Execute SQL, etc.).

  2. Data Flow – Handles ETL operations.

  3. Connection Managers – Connect to sources/destinations.

  4. Event Handlers – Handles events like OnError, OnPostExecute.

  5. Package Configurations / Parameters – Dynamic properties.


Q3: Difference between SSIS and DTS?
Answer:

Feature DTS SSIS
Introduced SQL Server 2000 SQL Server 2005+
ETL Capability Basic Advanced
Performance Moderate High
Extensibility Limited Script tasks, custom components
Error Handling Basic Event handlers, logging

Q4: Explain Control Flow vs Data Flow.
Answer:

  • Control Flow: Manages tasks and workflow; handles precedence, loops, transactions.

  • Data Flow: Performs ETL operations – extract, transform, load records.

  • Example: Data Flow task inside Control Flow moves data from SQL Server to flat files.


Q5: What are SSIS packages?
Answer:

  • SSIS packages are containers for ETL logic.

  • Can contain multiple tasks, connections, variables, and event handlers.

  • Can be deployed to SSISDB or file system.


Q6: What are Connection Managers in SSIS?
Answer:

  • Connection Managers define connections to databases, files, Excel, flat files, or web services.

  • Example: OLE DB Connection to SQL Server or Flat File Connection for CSV.


Q7: What is the difference between Project Deployment and Package Deployment Model?
Answer:

Feature Project Deployment Package Deployment
Scope Entire project Individual package
Deployment SSISDB File system or MSDB
Parameters Supports project-level parameters Package-level variables only
Environment Environments for configurations Config files used

2. Data Flow Tasks and Transformations

Q8: What are different Data Flow tasks?
Answer:

  • Source: Extract data (OLE DB Source, Flat File Source).

  • Transformation: Modify/cleanse data (Derived Column, Lookup, Merge Join).

  • Destination: Load data (OLE DB Destination, Excel Destination).


Q9: What is Lookup Transformation and how is it used?
Answer:

  • Used to retrieve related data from another table.

  • Modes: Full cache, Partial cache, No cache.

  • Example: Adding product name from Product table based on ProductID.


Q10: Difference between Merge and Union All Transformation?
Answer:

Feature Merge Union All
Input Sorted datasets Can be unsorted
Output Single dataset Combines multiple datasets
Sorting Required Not required
Use Sequential merge Append datasets

Q11: What is Slowly Changing Dimension (SCD) Transformation?
Answer:

  • Handles historical data changes in dimension tables.

  • Types:

    • Type 1: Overwrite old data.

    • Type 2: Keep historical rows (add version/expiry dates).

    • Type 3: Store limited historical info in additional columns.


Q12: What is Derived Column Transformation?
Answer:

  • Creates new columns or modifies existing columns using expressions.

  • Example: Concatenating first name and last name:

[FirstName] + " " + [LastName]

Q13: Explain Conditional Split Transformation.
Answer:

  • Routes rows to different outputs based on conditions.

  • Example: Direct orders over 1000 to “HighValue” and others to “Normal”.


Q14: Explain Data Conversion Transformation.
Answer:

  • Converts data types to match destination requirements.

  • Example: DT_STR to DT_WSTR when loading data into Unicode columns.


Q15: How do you handle Slowly Changing Dimensions (SCD) without using SCD Transformation?
Answer:

  • Use Lookup + Conditional Split + OLE DB Command / Insert for Type 1 & Type 2.

  • Gives more control and better performance than built-in SCD wizard.


3. Error Handling and Logging

Q16: How do you handle errors in SSIS?
Answer:

  • Use Event Handlers: OnError, OnWarning, OnPostExecute.

  • Redirect rows to error output in Data Flow transformations.

  • Use Try/Catch logic in Script Task for advanced handling.


Q17: How do you log package execution details?
Answer:

  • Enable SSIS logging (SQL Server, flat file, Windows Event Log).

  • Events: OnError, OnWarning, OnPreExecute, OnPostExecute.

  • Use log providers for tracking package execution.


Q18: How do you redirect rows in Data Flow?
Answer:

  • Set Error Output property of transformation to “Redirect Row”.

  • Connect to Flat File / OLE DB Destination to store error rows.


Q19: Difference between Fail Package on Error vs MaximumErrorCount?
Answer:

  • Fail Package on Error: Stops package immediately on critical error.

  • MaximumErrorCount: Number of errors allowed before failing package; default = 1.


Q20: How do you handle NULLs in SSIS?
Answer:

  • Use Derived Column: ISNULL(Column) ? "DefaultValue" : Column

  • Use Data Conversion to avoid datatype mismatch.

  • Use Conditional Split for rows with NULL values.


4. Variables, Parameters, and Configurations

Q21: Difference between SSIS Variables and Parameters?
Answer:

Feature Variable Parameter
Scope Package or Task Package or Project
Usage Runtime data Design-time configuration
Modifiable Yes No (during execution)

Q22: How do you pass values between tasks?
Answer:

  • Use SSIS Variables.

  • Configure Expression property in tasks or transformations.

  • Example: Assign Execute SQL result to variable, use variable in Data Flow Destination.


Q23: What are SSIS Expressions?
Answer:

  • Expressions allow dynamic property evaluation.

  • Example: Dynamic file name:

"C:\\Export\\File_" + (DT_STR, 8, 1252) DATEPART("yyyy", GETDATE()) + ".txt"

Q24: What is Package Configuration?
Answer:

  • Used to dynamically set property values at runtime.

  • Methods: XML configuration, Environment variables, SQL Server table, Parent package variable.


Q25: Difference between Environment Variable and Configuration?
Answer:

  • Environment Variable: External system variable; can be used in multiple packages.

  • Package Configuration: Specific to a package; can store connection strings, variables, etc.


5. Deployment and Execution

Q26: How do you deploy SSIS packages?
Answer:

  • Project Deployment Model → Deploy to SSISDB (Integration Services Catalog).

  • Package Deployment Model → Deploy to File System or MSDB.


Q27: How do you schedule SSIS packages?
Answer:

  • Use SQL Server Agent Jobs.

  • Define steps: “SSIS Package Execution” with connection to SSISDB or file system.

  • Set schedule (daily, weekly, event-based).


Q28: Difference between 32-bit and 64-bit execution in SSIS?
Answer:

  • Some providers (Excel, Access) require 32-bit runtime.

  • Use Run64BitRuntime = False in project properties for 32-bit execution.


Q29: How do you execute SSIS packages from command line?
Answer:

  • Use DTEXEC utility:

dtexec /F "C:\Packages\MyPackage.dtsx" /SET \Package.Variables[User::FileName].Value;"C:\Data\file.csv"

Q30: How do you pass runtime parameters to SSIS package?
Answer:

  • Use Project Parameters or Package Parameters.

  • Pass via DTEXEC /SQL /SET or SQL Server Agent job.


6. Performance and Optimization

Q31: How do you improve SSIS performance?
Answer:

  • Use Fast Load in OLE DB Destination.

  • Minimize blocking transformations (Sort, Aggregate).

  • Use lookup caching wisely.

  • Reduce logging for large data volumes.

  • Use batch commit for large transactions.


Q32: Difference between Full Cache, Partial Cache, No Cache in Lookup?
Answer:

Cache Mode Behavior
Full Cache Entire reference table cached in memory; fast
Partial Cache Some rows cached; additional queries to source
No Cache Always queries the source

Q33: How do you handle large file ETL efficiently?
Answer:

  • Use Bulk Insert / Fast Load.

  • Split file into chunks or use Data Streaming.

  • Avoid transformations that require sorting in memory.


Q34: How do you avoid blocking transformations in SSIS?
Answer:

  • Minimize use of Sort, Aggregate, Merge Join.

  • Pre-sort data in source query.

  • Use HASH / Lookup transformations instead of Merge Join when possible.


7. Advanced / Scenario-Based Questions

Q35: How do you implement Slowly Changing Dimensions Type 2 without SCD Wizard?
Answer:

  • Use Lookup to check if key exists.

  • Conditional Split for changed data.

  • Insert/Update into dimension table with effective date columns.


Q36: How do you implement incremental load?
Answer:

  • Use CDC (Change Data Capture) or Last Modified Date columns.

  • Lookup existing records.

  • Only insert/update changed records to target.


Q37: How do you handle dynamic file names for multiple files?
Answer:

  • Use Foreach Loop Container with Foreach File Enumerator.

  • Store filename in variable.

  • Map variable to Flat File Connection Manager dynamically.


Q38: How do you implement error handling for bad data?
Answer:

  • Redirect rows to error output.

  • Capture error column, error code, source data.

  • Store in error table or flat file for review.


Q39: How do you handle parallel execution of Data Flow tasks?
Answer:

  • Set MaxConcurrentExecutables property in package.

  • Use multiple Data Flow tasks connected via precedence constraints.

  • Ensure sources/destinations support parallelism.


Q40: How do you handle incremental loads with Lookup Cache?
Answer:

  • Use partial cache or no cache mode to prevent memory overload.

  • Only fetch rows not in target or changed rows.

  • Update target with inserts/updates accordingly.


Q41: Difference between Execute SQL Task and Data Flow Task?
Answer:

Feature Execute SQL Task Data Flow Task
Function Executes SQL statement / stored procedure Extract, Transform, Load data
Output Scalar / result set Rowset data
Usage Control Flow ETL operations

Q42: How do you handle multi-source data consolidation in SSIS?
Answer:

  • Use multiple sources in Data Flow.

  • Use Merge Join / Union All to consolidate.

  • Apply transformations to harmonize column formats.