![]() |
VOOZH | about |
SQL Server databases are commonly used to store enterprise records. It is often necessary to move this data to other locations. The CData SSIS Components for MongoDB allow you to easily transfer data from SQL Server to MongoDB.
This article demonstrates how to use the CData SSIS Components for MongoDB inside of a SQL Server Integration Services workflow to export data from SQL Server to MongoDB, utilizing a lookup component to find and update any existing records or insert new records.
Accessing and integrating live data from MongoDB has never been easier with CData. Customers rely on CData connectivity to:
MongoDB's flexibility means that it can be used as a transactional, operational, or analytical database. That means CData customers use our solutions to integrate their business data with MongoDB or integrate their MongoDB data with their data warehouse (or both). Customers also leverage our live connectivity options to analyze and report on MongoDB directly from their preferred tools, like Power BI and Tableau.
For more details on MongoDB use case and how CData enhances your MongoDB experience, check out our blog post: The Top 10 Real-World MongoDB Use Cases You Should Know in 2024.
To get started, add a new OLE DB source, CData MongoDB lookup, and two CData MongoDB destinations (one to handle a lookup with a match and one to handle a lookup without a match) to a new data flow task.
π OLD DB Source, CData MongoDB Lookup and CData MongoDB DestinationsFollow the steps below to specify properties required to connect to the SQL Server instance.
Follow the steps below to save connection properties in the Connection Manager.
In the lookup component Transform Editor, define mappings from the SQL Server source table into the MongoDB lookup table.
Using the lookup component, you know which entries from the data source already exist in MongoDB and which ones are new. Configure two MongoDB components to handle the situation where a match is found and a match is not found.
If the lookup component returns a match, update the existing record in MongoDB.
If the lookup component does not return a match, add a new record to MongoDB.
You can now run the project. After the SSIS Task has finished executing, data from your SQL table will be exported to the chosen table.
π The completed upsert. (Salesforce is shown.)Download a free trial of the MongoDB SSIS Component to get started:
Download NowLearn more:
π MongoDB IconPowerful SSIS Source & Destination Components that allows you to easily connect SQL Server with live MongoDB document databases through SSIS Workflows.
Use the MongoDB Data Flow Components to synchronize with MongoDB data. Perfect for data synchronization, local back-ups, workflow automation, and more!