<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ MSSQL - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ MSSQL - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Mon, 27 Jul 2026 17:33:24 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/tag/mssql/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ How to Connect your AWS RDS Microsoft SQL Server using Azure Data Studio ]]>
                </title>
                <description>
                    <![CDATA[ By Clark Jason Ngo The goal of this guide is to play around with cloud databases and connect one to a database tool. Once you are done with this guide, you should be able to create databases and tables, and more.  Importing a sample database is a pai... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/cjn-how-to-connect-your-aws-rds-microsoft-sql-server-using-azure-data-studio/</link>
                <guid isPermaLink="false">66d45e0a230dff01669057c9</guid>
                
                    <category>
                        <![CDATA[ AWS ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Azure ]]>
                    </category>
                
                    <category>
                        <![CDATA[ database ]]>
                    </category>
                
                    <category>
                        <![CDATA[ MSSQL ]]>
                    </category>
                
                    <category>
                        <![CDATA[ SQL ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ freeCodeCamp ]]>
                </dc:creator>
                <pubDate>Sun, 29 Mar 2020 09:41:13 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2020/03/Screen-Shot-2020-03-29-at-2.36.26-AM.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>By Clark Jason Ngo</p>
<p>The goal of this guide is to play around with cloud databases and connect one to a database tool. Once you are done with this guide, you should be able to create databases and tables, and more. </p>
<p>Importing a sample database is a pain, so here's another guide that I created: <a target="_blank" href="https://www.freecodecamp.org/news/cjn-how-to-import-a-sample-database-to-your-aws-rds-microsoft-sql-server-using-s3/"><em>How to Import a Sample Database to your AWS RDS Microsoft SQL Server using S3</em></a>.</p>
<p>Luckily as I was new to this, I also discovered how to connect to a MSSQL Server with Docker to Azure Data Studio. Check this guide: <em><a target="_blank" href="https://www.freecodecamp.org/news/cjn-how-to-connect-your-microsoft-sql-server-docker-container-with-azure-data-studio/">How to Connect your AWS RDS Microsoft SQL Server using Azure Data Studio</a></em>.</p>
<p>We will be touching on the technologies shown below:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-242.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Database: Amazon Relational RDS with MSSQL Server Express Edition</li>
<li>Database tool and GUI: Azure Data Studio</li>
</ul>
<h2 id="heading-creating-and-configuring-your-aws-rds-mssql-server-instance">Creating and Configuring your AWS RDS MSSQL Server Instance</h2>
<h3 id="heading-sign-in-to-awscom">Sign in to AWS.com:</h3>
<ol>
<li>Go to <a target="_blank" href="https://aws.amazon.com/console/">https://aws.amazon.com/console/</a></li>
<li>Click <strong>Sign into your AWS account</strong></li>
</ol>
<h3 id="heading-create-a-microsoft-sql-server-db-instance">Create a Microsoft SQL Server DB Instance:</h3>
<ol>
<li>In the Create database section, choose <strong>Create database</strong>.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-213.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="2">
<li>Choose <strong>Easy Create</strong> for database creation method.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-216.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="3">
<li>Choose the <strong>Microsoft SQL Server</strong> icon for engine type.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-217.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="4">
<li>Select <strong>Free Tier</strong> for the DB instance size.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-218.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="5">
<li><p>Fill in the following details for DB instance identifier:</p>
</li>
<li><p><strong>DB instance identifier:</strong> myrdstest.</p>
</li>
<li><strong>Master username:</strong> Type a username</li>
<li><strong>Master password:</strong> Type a password that contains from 8 to 41 printable.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-221.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="6">
<li>Select <strong>Create database</strong>.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-220.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Note: It might take a couple of minutes to provision</p>
<p>If you accidentally exit the page, you should see your database <strong>myrdstest</strong> under <strong>RDS</strong> &gt; <strong>Databases</strong>.</p>
<p>For a more detailed tutorial, follow the steps in the <a target="_blank" href="https://aws.amazon.com/getting-started/tutorials/create-microsoft-sql-db/">AWS docs</a>.</p>
<h3 id="heading-allow-public-access-to-your-rds-instance">Allow Public Access to your RDS instance</h3>
<ol>
<li>Click <strong>Modify</strong></li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-223.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="2">
<li>Choose <strong>Yes</strong> in Public Accessibility under Network &amp; Security.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-224.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="3">
<li>Choose <strong>Apply immediately</strong> under Scheduling of modifications, then Click <strong>Modify DB instance</strong>.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-225.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h3 id="heading-allow-inbound-rules">Allow Inbound Rules</h3>
<ol>
<li>Click <strong>default (sg-0000d009)</strong> under VPC security groups.</li>
</ol>
<p>Note: the number is different in your own instance.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-226.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="2">
<li>Click <strong>Inbound</strong>, then click <strong>Edit inbound rules</strong>.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-228.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="3">
<li>Choose <strong>My IP</strong> in Source, then click <strong>Save rules</strong>.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-227.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h2 id="heading-test-your-connection-to-aws-rds">Test your Connection to AWS RDS</h2>
<p>Open your terminal (MacOS), and type the following: <strong>nc -zv _aws_rds_endpoint port<em>number</em></strong></p>
<p>Successful connection example:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-229.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Failed connection example:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-230.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Make sure your RDS instance is Public and Inbound rules allows your IP.</p>
<h2 id="heading-download-a-sql-server-gui-azure-data-studio">Download a SQL Server GUI - Azure Data Studio</h2>
<p><a target="_blank" href="https://database.guide/what-is-azure-data-studio/">Azure Data Studio</a> (formerly SQL Operations Studio) is a free GUI management tool that you can use to manage SQL Server. You can use it to create and manage databases, write queries, backup and restore databases, and more.</p>
<p>Azure Data Studio is available on Windows, Mac, and Linux.</p>
<h3 id="heading-install-azure-data-studio">Install Azure Data Studio</h3>
<p>To install Azure Data Studio on a Mac:</p>
<ol>
<li>Visit the <a target="_blank" href="https://docs.microsoft.com/en-us/sql/azure-data-studio/download">Azure Data Studio download page</a>, and click the .zip file for macOS</li>
<li>Once the .zip file has finished downloading, double click it to expand its contents</li>
<li>Drag the .app file to the Applications folder.</li>
</ol>
<h3 id="heading-connect-to-sql-server">Connect to SQL Server</h3>
<p>Now that Azure Data Studio is installed, you can use it to connect to SQL Server:</p>
<ol>
<li>Launch Azure Data Studio. It is located in your Applications folder.</li>
<li>Enter the login credentials and other information for the SQL Server instance that you’d like to connect to:</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-231.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>It should look similar to this:</p>
<ul>
<li><strong>Server Name</strong>: [AWS RDS Endpoint], [port number]<br><strong>Example</strong>: myrdstest.blahblahblah.us-west-2/ds.amazonaws.com, 1433</li>
<li><strong>Authentication Type</strong>: SQL Login</li>
<li><strong>User name</strong>: [your AWS username]</li>
<li><strong>Password</strong>: [your AWS password]</li>
<li><strong>Database Name</strong>: </li>
<li><strong>Server Group</strong>: </li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-232.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>If you used a port other than the default 1433, click <strong>Advanced</strong> and enter it in the Port field.</p>
<p>Alternatively, you can append it to your server name with a comma in between. For example, if you used port 1400, type in localhost,1400.</p>
<p>If you get an error:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-233.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Make sure your RDS instance is Public and Inbound rules allows your IP.</p>
<p>You can now go ahead and create databases, run scripts, and perform other SQL Server management tasks.</p>
<ol>
<li>Click <strong>New Query</strong></li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-234.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ol start="2">
<li>Type <strong>SELECT @@VERSION</strong>, then Click <strong>Run Query</strong>.</li>
</ol>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-235.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>You should be able to see: <em>Microsoft SQL Server</em> in the Results</p>
<p>Congratulations! ???</p>
<h2 id="heading-resources">Resources:</h2>
<ul>
<li><a target="_blank" href="https://aws.amazon.com/getting-started/tutorials/create-microsoft-sql-db/">How to Create a Microsoft SQL DB</a></li>
</ul>
<p>Connect with me on LinkedIn <a target="_blank" href="https://www.linkedin.com/in/clarkngo/">here</a></p>
<p><img src="https://www.freecodecamp.org/news/content/images/2020/03/image-184.png" alt="Image" width="600" height="400" loading="lazy"></p>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
