Thursday , December 5 2024

Retrieve Data From MongoDB With PolyBase

In today’s article, we will cover retrieving data from MongoDB with PolyBase; PolyBase allows us to retrieve data from multiple sources and combine them into a single database.

In this article, I will explain how to query a table in Mongo using polybase on SQL.

If you have not created a master key, you need to create one.

After creating our master key, we need to enter the user in the mongodb database.

We have created a credential in our database and are creating a data source for our mongodb connection.

We have introduced the connection and user information to the SQL server and now let’s see the data we want to pull on Mongo.

As seen above, there is a collection (table) with three columns.

In order to see our table on Mongodb on SQL Server, we need to create an external table as follows.

We created our external table. Let’s check it by pulling our data.

Loading

About Faruk Erdem

Leave a Reply

Your email address will not be published. Required fields are marked *