<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MongoDB ExecuteSQL Task Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/mongodb-executesql-task/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/mongodb-executesql-task/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Thu, 23 Oct 2025 23:05:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>MongoDB ExecuteSQL Task Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/mongodb-executesql-task/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to add / remove MongoDB User in SSIS</title>
		<link>https://zappysys.com/blog/add-remove-mongodb-user-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Thu, 16 Jun 2016 21:45:30 +0000</pubDate>
				<category><![CDATA[SSIS MongoDB ExecuteSQL]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[MongoDB ExecuteSQL Task]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=604</guid>

					<description><![CDATA[<p>Introduction In this blog post, you will learn how to call MongoDB Shell Commands from SSIS using the MongoDB ExecuteSQL task Some use cases for calling MongoDB shell commands are listed here. &#160; How to call MongoDB Shell Commands in SSIS Download and install SSIS PowerPack from here From the toolbox of the SSIS designer, [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/add-remove-mongodb-user-ssis/">How to add / remove MongoDB User in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><img decoding="async" class="size-full wp-image-2115 alignleft" src="https://zappysys.com/blog/wp-content/uploads/2017/08/mongodb-logo.png" alt="" width="88" height="88" />In this blog post, you will learn how to call MongoDB Shell Commands from SSIS using the <a href="//zappysys.com/products/ssis-powerpack/ssis-mongodb-executesql-task/" target="_blank" rel="noopener">MongoDB ExecuteSQL task</a></p>
<p>Some use cases for calling <a href="//zappysys.com/onlinehelp/ssis-powerpack/scr/ssis-mongodb-executesql-task.htm#A_Examples" target="_blank" rel="noopener">MongoDB shell commands are listed here</a>.</p>
<p>&nbsp;</p>
<h2>How to call MongoDB Shell Commands in SSIS</h2>
<ol>
<li>Download and install <a href="//zappysys.com/products/ssis-powerpack/">SSIS PowerPack from here</a></li>
<li>From the toolbox of the SSIS designer, drag  <a href="//zappysys.com///zappysys.com/products/ssis-powerpack/ssis-mongodb-executesql-task/" target="_blank" rel="noopener">ZS MongoDB ExecuteSQL Task</a></li>
<li>Click on New Connection (Next to the connection dropdown)</li>
<li>Configure the MongoDB connection and click Test. Close UI by clicking OK</li>
<li>Now, on the Task UI, configure it as below. Notice the &#8220;Examples&#8221; dropdown. That&#8217;s the best way to learn various commands.</li>
<li>You can also use the &#8220;Insert Variables&#8221; option to make your command dynamic (Read value from SSIS variable)
<div id="attachment_11590" style="width: 969px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2016/06/How-to-add-remove-MongoDB-User-in-SSIS.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-11590" class="size-full wp-image-11590" src="https://zappysys.com/blog/wp-content/uploads/2016/06/How-to-add-remove-MongoDB-User-in-SSIS.png" alt="" width="959" height="575" srcset="https://zappysys.com/blog/wp-content/uploads/2016/06/How-to-add-remove-MongoDB-User-in-SSIS.png 959w, https://zappysys.com/blog/wp-content/uploads/2016/06/How-to-add-remove-MongoDB-User-in-SSIS-300x180.png 300w, https://zappysys.com/blog/wp-content/uploads/2016/06/How-to-add-remove-MongoDB-User-in-SSIS-768x460.png 768w" sizes="(max-width: 959px) 100vw, 959px" /></a><p id="caption-attachment-11590" class="wp-caption-text">How to add/remove a MongoDB User in SSIS</p></div></li>
</ol>
<div class="mceTemp"></div>
<h2>Add MongoDB User</h2>
<p>To add a MongoDB user using the <a href="//zappysys.com///zappysys.com/products/ssis-powerpack/ssis-mongodb-executesql-task/" target="_blank" rel="noopener">MongoDB ExecuteSQL Task</a>, use the following Script</p><pre class="crayon-plain-tag">{
 scope: 'database',
 command: 'eval',
 db: 'Northwind',
 args: { code: 'db.createUser( { user: "myUser1", pwd: "password123",roles: [ "readWrite", "dbAdmin" ] })' }
}</pre><p>
&nbsp;</p>
<h2>Remove MongoDB User</h2>
<p>To remove the MongoDB user using the <a href="//zappysys.com///zappysys.com/products/ssis-powerpack/ssis-mongodb-executesql-task/" target="_blank" rel="noopener">MongoDB ExecuteSQL Task</a>, use the following Script</p><pre class="crayon-plain-tag">{
 scope: 'database',
 command: 'eval',
 db: 'Northwind',
 args: { code: 'db.removeUser("myUser1")' }
}</pre><p>
&nbsp;</p>
<h2>List MongoDB Users from the Command Line</h2>
<p>To list existing users for a specific database, perform the following steps.</p>
<ol>
<li>Open the command prompt and type <strong>mongo</strong></li>
<li>If needed, type userid/password (if not required, then do the next step)</li>
<li>type <strong>use YourDBName</strong></li>
<li>Type <strong>db.getUsers()</strong></li>
</ol>
<div id="attachment_605" style="width: 502px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2016/06/ssis-mongodb-list-database-users-command-line.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-605" class="size-full wp-image-605" src="//zappysys.com/blog/wp-content/uploads/2016/06/ssis-mongodb-list-database-users-command-line.png" alt="How to list MongoDB dabase users using db.getUsers() on mongo command line" width="492" height="479" srcset="https://zappysys.com/blog/wp-content/uploads/2016/06/ssis-mongodb-list-database-users-command-line.png 492w, https://zappysys.com/blog/wp-content/uploads/2016/06/ssis-mongodb-list-database-users-command-line-300x292.png 300w" sizes="(max-width: 492px) 100vw, 492px" /></a><p id="caption-attachment-605" class="wp-caption-text">How to list MongoDB database users using db.getUsers() on the mongo command line</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://zappysys.com/blog/add-remove-mongodb-user-ssis/">How to add / remove MongoDB User in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
