This is the Custom Adapter for Microsoft's SSIS to connect to MongoDB, licensed under the MIT license.
This data source depends on the C# MongoDB drivers found at:
https://github.com/mongodb/mongo-csharp-driver/downloads
- The latest version of Mongosis (1.7.0) requires the 1.7.0 version of the C# MongoDB drivers.
- From version 1.5.0 of the C# MongoDB drivers and on, the installer does not load the drivers into the Global Assembly Cache (GAC).
- Run gacutil.exe with '/iF' option to load the C# MongoDB driver DLLs in to the GAC.
- gacutil.exe can be found here: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe
The unit tests depend on the .NET mocking framework 'JustMock Lite' available at:
http://www.telerik.com/freemocking.aspx
Mongosis has an installer which makes deployment very easy, however if you wish to deploy manually then do the following:
- Copy DLL file to:
- C:\Program Files (x86)\Microsoft SQL Server\110\DTS\PiplineComponents
- C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Connections
- Run gacutil.exe with '/iF' option to load DLL in to the Global Assembly Cache, util is found at:
- C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe
- In SQL Server Data Tools, create a 'Business Intelligence > Integration Services' project.
- Create a MongoDB Connection Manager in the Connection Managers area.
- Set the database, server, username and password values in the Component Properties
- Drag a MongoDB Data Source in to the Data Flow area
- Right click the MongoDB data source and click Edit
- Under Connection Managers, ensure that MongoDBConnectionManager is selected.
- In the Component Properties tab, enter the name of the Mongo collection you wish to pull data from in the 'CollectionName' custom property.
- Under Input and Output properties, verify that all the expected fields are listed under Output - Output Columns
- Clicking onto each Output Column, ensure that the DataType field is correct
- Drag your data destination to the Data Flow area
- Click on the MongoDB Data Source and create a connection to the destination.
- Select 'Start Debugging' (key F5) to begin the data flow process.
- Uninstall any existing versions of Mongosis
- Install the latest version of Mongosis
- Ensure you have the appropriate version of the C# MongoDB drivers installed (1.7.0 is the current compatible version)
- In a text editor, open up the Package.dtsx file for the SSIS package:
- Find the connection manager entry with the name: "MongoDBConnectionManager" and add the following object data after the "SlaveOk" entry:
<Ssl
Type="11"
Value="0" />
- Find any property entries that specify a version for "MongoSsisDataSource" and set that to match the version number of Mongosis to which you are upgrading (i.e. 1.7.0.0)
- Save the changes
- Restart Visual Studio in order to complete the upgrade
- Ensure that 'Run64BitRuntime' option in SSIS project Configuration/Debugging properties is set to 'False'.
- If you're running the 32-bit version of Windows there is no 'Program Files(x86)' so deploy to folders under 'Program Files' instead.
The contact for this project is mongosis@simplybusiness.co.uk