Joe Samraj
Joe Samraj

Reputation: 331

Azure Data Factory, Mongo DB Connectionstring has special character

I have to connect MongoDB in azure data factory, the password of the mongoDB has '@' sign in it, which seems to be causing some issue. is there any way to escape that character?

the connection string is some thing look alike given below,

mongodb://username:p@[email protected]:1800/db_name

Upvotes: 0

Views: 877

Answers (2)

Joe Samraj
Joe Samraj

Reputation: 331

Actually,

I got the answer,

I have to use '%40' instead of '@'

so the connectionstring will go like this

mongodb://username:p%[email protected]:1800/db_name

Upvotes: 1

Leon Yue
Leon Yue

Reputation: 16401

Please reference this tutorial: Copy data from MongoDB using Azure Data Factory.

The MongoDB connection string format is look like this:

mongodb://[username:password@]host[:port][/[database][?options]]

enter image description here

Hope this helps.

Upvotes: 0

Related Questions