Skip to content

Get the most out of MSSQL !

Consultant & Trainer for all things MSSQL

  • Home
  • Company
  • Business Intelligence
  • Simply Better Business

Connecting to a Azure database from SSMS and how to configure database level Firewall

Posted on July 14, 2014March 20, 2021 by jayanth.kurup

So you finally have an Azure database, but how do you connect to it? Surprisingly simple actually, you can access your database remotely from within SSMS so for all SQL developers used to working with SSMS this is a big advantage. Also it is much more user friendly than the online version. Users however need to be aware there are limitations to Azure databases so before you go starting migrating all your existing databases make sure you review the link below.

How to migrate

http://msdn.microsoft.com/en-us/library/azure/ee730904.aspx

Limitations

http://msdn.microsoft.com/en-us/library/azure/ff394102.aspx

In order to connect to your database you need the server name and the username and password to the sql account created previously when setting up the server.

Login to your Azure account and then navigate to the SQL databases tab, once there you will see a list of your databases and the servers on which they are deployed.

Click on your database and select dashboard from the links on the top to get the below screen.

Click the link for Manage allowed IP Addresses.

This creates a firewall rule for preventing access from any IP other than the ones for which permission is granted. By default permission are blocked for everybody.

The above screen shows the current IP of my Laptop as determined by Windows Azure and if I want to permission this IP to access the database remotely then I need to click the arrow next to “Add to the allowed IP Addresses”

If you use dynamic IPs this process will need to be done every time you connect from a new network or are assigned a new IP like after shutdown and restart. Once added the screen will look like below.

Click Save at the bottom of the page.

On the Dashboard screen if your scroll down further you will see the below details.

Note the Server name. Now open up your SQL Server management studio SQL 2008 r2 and above.

Enter the Server name followed by the account credentials. And press connect.

Please Consider Subscribing

Subscribe

CategoriesAzure, DatabasesTagsaccess, account, address, administration, advantage, age, AI, Analysis Services, arrow, ASP, aspx, AWS, Azure, Azure account, Azure database, Azure databases, azurewebsites, Bangalore, Bengaluru, BigData, Block, BLR, board, Business Intelligence, Cloud, Consultant, Consulting, Corporate, count, CREATE, cred, credential, Data, database, deploy, detail, developer, development, ee730904, en-US, Enabled Business Solutions, enabledbusiness, end, event, expert, ff394102, firewall, firewall rule, friend, gate, Grant, index, India, IP Address, IP Addresses, Jayanth, Kurup, laptop, lib, library, limit, limitation, line, lock, login, management, management studio, microsoft, Migration, min, ML, ms sql server, MSBI, msdn, MSSQL, MYSQL, name, need, network, note, ONLINE, Oracle, password, permission, png, power pivot, Power Query, PowerApps, PowerBI, Powershell, pre, Press, process, Python, rate, RDBMS, red, Remote, review, row, rule, security, SELECT, server, server name, Servername, set, show, shows, shutdown, sign, Simple, site, sql, SQL 2000, SQL 2005, SQL 2008, sql 2008 r2, sql 2012, SQL 2014, SQL 2016, SQL 2017, SQl 2019, SQL Databases, sql server, SQL server management studio, SSAS, SSIS, SSMS, SSRS, star, start, starting, T-SQL, tab, term, tools, trainer, Transact, tuning, Upgrade, uploads, user, username, Very large database, view, Virtual, virtual machine, visual studio, VM, war, Web, website, Websites, window, windows, windows azur, Windows Azure, word, work

jayanth.kurup

This post was written by Jayanth Kurup. A Microsoft SQL Server Consultant and Trainer based out of Bangalore, India. Jayanth has been working on MS SQL Server for over 15 years. He is a performance tuning and Business Intelligence expert. Having worked with companies like Microsoft, DELL, Wells Fargo, Thomson Reuters and many other fortune 100 companies. Some other technologies Jayanth works on include Microsoft Azure, PowerBI, Python and AWS. When he isn’t consulting or training, Jayanth like to travel, paint and read. He is also very active in social causes and the founder of Enabled Business Solutions. Visit his company by clicking the link in the menu or email him directly.

Post navigation

PreviousPrevious post: Creating a SQL Azure Server and Database
NextNext post: Querying SQL Azure database from online portal using the Manage URL

The Latest

  • Monty Hall Simulation using T-SQL April 5, 2022
  • Query to quickly profile a column February 7, 2022
  • Outlook 2019 keeps asking for password multiple times December 9, 2021
  • Part 2:- Learning T SQL for beginners – Datatypes September 28, 2021
  • Part 1:- Learning T SQL for beginners- SQL, Tables and Nulls September 27, 2021
  • Query to find execution time of Jobs July 28, 2021
  • A simple script to decapitalize Column names July 19, 2021
  • My personal side effects with Covishield June 27, 2021
  • Setting up and Configuring CUDA, CUDNN and PYTorch for Python Machine Learning. June 3, 2021
  • keras.utils.generic_utils’ has no attribute ‘populate_dict_with_module_objects May 30, 2021

Find By Category

  • Azure
  • Databases
  • Events
  • Performance Tuning
  • PowerBI
  • Uncategorized
  • Website Design

Archive

  • April 2022 (1)
  • February 2022 (1)
  • December 2021 (1)
  • September 2021 (2)
  • July 2021 (2)
  • June 2021 (2)
  • May 2021 (2)
  • April 2021 (5)
  • March 2021 (10)
  • January 2021 (2)
  • November 2020 (2)
  • October 2020 (3)
  • September 2020 (4)
  • August 2020 (6)
  • July 2020 (1)
  • June 2020 (32)
  • May 2020 (18)
  • April 2020 (2)
  • March 2020 (4)
  • February 2020 (5)
  • January 2020 (1)
  • December 2019 (1)
  • November 2019 (14)
  • October 2019 (3)
  • September 2019 (1)
  • July 2019 (3)
  • June 2019 (2)
  • May 2019 (1)
  • April 2019 (2)
  • March 2019 (1)
  • January 2019 (4)
  • December 2018 (2)
  • November 2018 (4)
  • September 2018 (6)
  • August 2018 (2)
  • July 2018 (3)
  • June 2018 (4)
  • May 2018 (1)
  • April 2018 (4)
  • March 2018 (3)
  • February 2018 (3)
  • January 2018 (1)
  • December 2017 (2)
  • November 2017 (4)
  • August 2017 (2)
  • July 2017 (5)
  • May 2017 (1)
  • March 2017 (3)
  • January 2017 (3)
  • December 2016 (2)
  • November 2016 (2)
  • October 2016 (4)
  • September 2016 (1)
  • August 2016 (1)
  • July 2016 (1)
  • June 2016 (1)
  • May 2016 (2)
  • April 2016 (1)
  • March 2016 (14)
  • February 2016 (10)
  • January 2016 (19)
  • December 2015 (3)
  • November 2015 (5)
  • October 2015 (10)
  • September 2015 (9)
  • August 2015 (16)
  • July 2015 (13)
  • June 2015 (4)
  • May 2015 (2)
  • April 2015 (2)
  • March 2015 (7)
  • February 2015 (3)
  • January 2015 (22)
  • December 2014 (1)
  • November 2014 (5)
  • October 2014 (12)
  • September 2014 (5)
  • August 2014 (7)
  • July 2014 (41)
  • June 2014 (9)
  • May 2014 (12)
  • April 2014 (32)

Members Only

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress