![]() |
VOOZH | about |
This article illustrates using the Cosmos DB ADO.NET Data Provider within a SQL Server SSIS workflow for the direct transfer of Cosmos DB data to a Microsoft SQL Server database. It's worth noting that the identical process detailed below is applicable to any CData ADO.NET Data Providers, enabling the direct connection of SQL Server with remote data through SSIS.
In the Data Flow screen, add an ADO.NET Source and an OLE DB Destination from the toolbox.
๐ The components used in the data task in this example.In the connection manager, enter the connection details for Cosmos DB data.
To obtain the connection string needed to connect to a Cosmos DB account using the SQL API, log in to the Azure Portal, select Azure Cosmos DB, and select your account. In the Settings section, click Connection String and set the following values:
Open the DataReader editor and set the following information:
SELECT City, CompanyName FROM Customers
Open the OLE DB Destination and enter the following information in the Destination Component Editor.
Configure any properties you wish on the Mappings screen.
๐ Input and destination columns in the OLE DB Destination Editor.Download a free trial of the Cosmos DB Data Provider to get started:
Download NowLearn more:
๐ Cosmos DB IconRapidly create and deploy powerful .NET applications that integrate with Cosmos DB document databases.