How to use Azure SQL Databases | Azure Fundamentals

Alex The Analyst · Intermediate ·📊 Data Analytics & Business Intelligence ·1y ago

Key Takeaways

This video demonstrates the use of Azure SQL Databases for data analytics, covering topics such as creating and configuring databases, accessing and connecting to applications, and monitoring performance and cost control. Specific tools used include Azure SQL Databases, Azure Data Studio, Microsoft Entra ID, and Power BI.

Full Transcript

what's going on everybody welcome back to another video today we're going to be taking a look at SQL databases in [Music] Azure by now I think you all know how much I love SQL I think is one of the best skills for any data professional to have but using it in the cloud is a little bit different than using it on your local computer so in this lesson we're going to see how you can use a SQL database in Azure without further Ado let's jump on my screen and take a look all right so the first thing that we're going to do is we're going to come right in here into databases under the resources now we have a lot of different options in here and there's a ton of different databases that you can choose from and it kind of depends on what your company does I'm only going to be showing you the SQL databases but other popular ones are things like using my SQL or postrace sqle with flexible servers as well as things like Azure Cosmos DB they all have different use cases and they all have different ways uh that they are implemented but by far the most common the one that I've used the most in my career is sequ databases so let's come right in here and what we need to do is we need to create a SQL database and let's click on create SQL database and let's actually create it and then we'll see how we can use it so what we're going to do is come right down here to subscription we have to select our Resource Group which you should have already created let's create a database name let's call this Alex the analyst DB for database now we have to select a server but we haven't created a server so we need to create a new server and again again I'm going to call this uh we'll do ataa for Alex the analyst I'll call This Server it looks like this needs to be lowercase let's do ATA server and then we'll do a YT at the end have to make it unique there we go all right we're overcoming some hurdles here next we have to choose an authentication method we can use the Microsoft entra only authentication SQL and the entra authentication or just SQL authentication now what that means is is if you come in here and set your uh Microsoft entra admin you can set it as yourself and that does help if you're already signed into Azure you're going to be using it within Azure this can be very helpful it's actually kind of the default um method let's get out of here this is the default method if you come down here though you can also create an admin login and a password both of these have their you know place and sometimes you need to use both um and so just choose the one the authentication method that you want for that server for us I think we're just going to stick with the uh entra admin we can always change that if we want to so let's go ahead and we're going to select ourselves here going to select that and there we go let's go ahead and click okay and that should create our server and there it goes and now we need to finish creating our SQL database so do you want to use a SQL elastic pool if you look at this tool tip right here basically helps you manage your resources but we're not going to be looking at the elastic pools for our workload environment we're just going to choose development production is going to be a lot faster because if it's in a production environment you're going to want better speed better compute all these different things development is going to be a little bit slower we can also choose a cheaper database or a more budget friendly database so we don't have to uh choose what it gives us we can come in here and we can Define this so maybe you want to have a provision tier instead of serverless which I don't really recommend uh serverless is uh quite nice for scalability but we're just going to keep it at is but if you want to come in here and change some of this configuration you're free to do that uh just don't you know if you don't know what it is I wouldn't mess with it let's come back to the create SQL databases and then we have our backup storage redundency you can either do locally zone or Geo we're just going to stick with our local let's go ahead to review and create it's going to tell us our cost which is very very very low um if you don't even have the free $200 that they're giving you which will be uh which can be used for this it's going to cost you like a dollar uh for you know what we're going to be doing or maybe even like 10 cents uh I'm being honest let's go ahead and create this it's going to take a little bit of time to set up all these servers and all the databases and all those things and then once it is done we'll take a look all right so our deployment is complete you can come in here and look at some of the details we created SQL databases the server SQL Server SQL server and so all these things are ready to go let's go ahead and click on go to Resource and let's exit out of this all this information is just an overview of our SQL database now we have down here some of the more important things that we're going to be taking a look at we're not going to be diving into all of them because uh I'm just going to show you the most common way now we have configure access connect to application and start developing now in the real world when people are actually using these SQL databases and when they are getting in here and setting everything up you can do this in a few different ways one is you can connect to a mySQL database and this is a very common practice where they connect it to a database management system it could be my SQL workbench or a ton of others that are out there and you can do that by configuring it and you're going to get some of that information you're going to plug it in and connect it what we're going to be looking at is not that option although uh that is something that happens often I'm going to show you azure's tool for this and it's going to be open Azure data studio so we're going to open up Azure data Studio we're going to click on this right here and you're going to need to download the Azure data studio now I already have this so I'm going to come down here and go to Azure data studio and this should resemble a few different things it should resemble a little bit of Visual Studio code and or should resemble something like Microsoft SQL Server it's kind of a combination of both you have a search you have some notebooks that you can use different projects an Explorer Source control extensions it has a ton of stuff and so this was really popular when I was using Azure everybody used this um as well as sometimes we connected to mySQL databases or uh Microsoft SQL Server datab bases and just use those database Management systems but often times we would have everything in Azure data studio so let's come right up here we are going to connect now we have to specify our server name let's go back really quickly we're going to come right over here we're going to go back to uh this right here we need to select our server so this is our server it's ATA server YT uh we could even come in here into the server and we can just uh copy this if we want to but we're going to get that we have our server we have our Windows authentication type and so it can either be a SQL login a Windows authentication but we chose the Microsoft entra ID now right here is recognizing the analy Builder outlook.com that was for the course that I have on analyst builder for AWS and Azure we need to add in our Alex the analyst outlook.com so let's come in here and we need to sign into our account so let's go ahead and sign in and there you go your account was added successfully let's go back and there we go now we're signed in and we need to select our database now it's not popping up the database right away which should be called like Alex the analyst DB or something like that let's go ahead and try to connect and see what happens it looks like we're getting an error here I think let's actually come back here I think our server name is actually this one right here I just chose the actual server but this is the connection that we actually need to make so uh I'm actually quite certain about that let's go ahead and click on this and now it's saying our connection was denied since Deni I public network access is set to yes so this is something I was waiting to see because we need to configure this just a little bit so let's come over here and we need to go to configure access so we're going to select configure and it says public network access is disabled but we can enable this and then what we can do is we can add in our IP address we're going to add in your client IP V4 address and all we have to do is click save so now it's going to update and it's going to say okay you can access this let's not you know get too crazy and too wild here now we can go back and we're going to select this and we already have that selected so now you can see that we have our two databases we have the master which is the one that you're going to get and then we have the one that we actually created so all of that to show that you do have to configure a few things make sure you're doing it properly and now we can come down here and we can connect to it and so now right in here and come into our tables we don't have any tables but we can come into these tables and Views and all of these different things now we can actually use this so now we are connected to our resource we're connected to our server and we can actually access the databases create them do all of our quering all of our uh things that we need to do with our data and we have all these options on the left hand side now this isn't an Azure data Studio tutorial uh but there's tons of stuff that you can do in here so if you've used something Azure data Studio or if you've used Microsoft SQL Server this should seem really familiar you should feel right at home now I want you to be able to actually use this I don't just want this to be something pretty so I need to show you one other thing that you need to do let's go ahead and try to create a table here right down here we have this script create new table we can keep it new table just with the one column uh it doesn't really matter let's just say this is ready to go let's go ahead and publish these changes then we're going to come down here and we're going to update our database now we can come over here and we have a new table so we can actually uh open this up we'll select the top 1,000 and of course we don't have any data in it but uh we have a working table so now this table is being stored on a server in a cloud and this is great so if you've ever used something like Microsoft SLE server you have all these tables and databases and all these things you're working with that's how it's actually used in the real world except you'd probably see get ton more tables you have access to a bunch of different servers for different clients and different uh data that worked perfect and what you can now do is let's do crln just get a new query window available I'm going to paste in here just like this um we're already selecting our database we don't have to say use this database go I'm just you know that's what I'm used to so I'm going to keep it in there uh for any you know if you have put this in a story procedure or something like that I don't want to fail out but this is just a super simple table um and we're going to go ahead and run this looks like that should be done let's refresh or actually refresh this this table and we have this product so let's open this up and now we have data in here this are little under uh underlined in red sometimes if you do control control alt R it'll refresh it or maybe it's control shift R that's okay it'll get rid of it eventually it just doesn't recognize it uh yet but it will um so anyways we have our data in here and now we can write regular queries and so uh this isn't a SQL lesson I'm not going to show you how to write SQL but I have hundreds of other lessons and courses on how to learn SQL and so this is uh kind of the nuts and bolts of how you set everything up and this is how people actually use it so this shouldn't be too intimidating if you know how to use MySQL workbench or Microsoft SQL server and so uh that is really awesome now if we come back here we're just going to take a look at a few more things this is just within our server but we don't want to look um at our server we want to go back to our database we're within our SQL database right here we were to looked at a little bit of configuration and aure data Studio again remember if you need to uh connect it to my SQL or something like that now just within the SQL database there are a few other things that you can do one they have something called a query editor um where you can come in here and you can query off of let's say you have tables you can query off of in here I can assure you that almost nobody ever uses this almost ever uh this is not really something that people use it's there to kind of test connections sometimes so if you're just setting up a new server or a new so if you're just setting up a new server or new database or whatever it is you can kind of check to make sure it's working but you won't use this in your real work uh that it's just not doesn't make sense now let's come over here and take a look at this left- hand side there are some interesting things that I want to show you one is this Power Platform when you start working with a large amount of data you have a server and a database set up and you're using it you have tons of real data in there you're like okay now it's time to connect this well you can use things like powerbi power apps and Power automate all these things just kind of automatically integrate into it there's also Integrations but just knowing how you know these are actually used you most likely won't use them but just knowing kind of what these are and how they work you most likely won't use these too much for people like you and I powerbi is something that we'll probably use quite a bit and we most likely won't use monitoring too much but I will say I've had to come into the monitoring quite a bit over my years to debug a bunch of stuff so if a store procedure is failing if the database is failing and you know you need to figure it out you can come into the logs if you need to see how much compute how many resources you're using you can look at the metrics so there are some reasons to come in here typically though this is more it related this isn't as much of what a data analyst will typically do unless you work like I said in it um where they monitor a lot of those things to keep cost down and keep things running and you know going smoothly so I hope that that was helpful I really appreciate you guys watching if you have not already be sure to check out my full AWS and Azure course on analyst builder.com and and if you like this video be sure to like And subscribe below I will see you in the next video [Music]

Original Description

In this lesson we will be looking at Storage Accounts in Azure! Install Azure Data Studio: https://learn.microsoft.com/en-us/azure-data-studio/download-azure-data-studio?tabs=win-install%2Cwin-user-install%2Credhat-install%2Cwindows-uninstall%2Credhat-uninstall#download-azure-data-studio 💻Take my Full Azure and AWS course: https://www.analystbuilder.com/courses/cloud-computing-essentials-with-azure-and-aws ____________________________________________ RESOURCES: 💻Analyst Builder - https://www.analystbuilder.com/ 📖Take my Full MySQL Course Here: https://bit.ly/3tqOipr 📖Take my Full Python Course Here: https://bit.ly/48O581R 📖Practice Technical Interview Questions: https://bit.ly/46pDqqL Coursera Courses: Google Data Analyst Certification: https://coursera.pxf.io/5bBd62 Data Analysis with Python - https://coursera.pxf.io/BXY3Wy IBM Data Analysis Specialization - https://coursera.pxf.io/AoYOdR Tableau Data Visualization - https://coursera.pxf.io/MXYqaN Udemy Courses: Python for Data Science - https://bit.ly/3Z4A5K6 Statistics for Data Science - https://bit.ly/37jqDbq SQL for Data Analysts (SSMS) - https://bit.ly/3fkqEij Tableau A-Z - http://bit.ly/385lYvN *Please note I may earn a small commission for any purchase through these links - Thanks for supporting the channel!* ____________________________________________ BECOME A MEMBER - Want to support the channel? Consider becoming a member! I do Monthly Livestreams and you get some awesome Emoji's to use in chat and comments! https://www.youtube.com/channel/UC7cs8q-gJRlGwj4A8OmCmXg/join ____________________________________________ Websites: 💻Website: AlexTheAnalyst.com 💾GitHub: https://github.com/AlexTheAnalyst 📱Instagram: @Alex_The_Analyst ____________________________________________ *All opinions or statements in this video are my own and do not reflect the opinion of the company I work for or have ever worked for*
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Alex The Analyst · Alex The Analyst · 0 of 60

← Previous Next →
1 Top 3 Data Analyst Skills in 2020
Top 3 Data Analyst Skills in 2020
Alex The Analyst
2 Truth About Big Companies | Told by a Fortune 500 Data Analyst
Truth About Big Companies | Told by a Fortune 500 Data Analyst
Alex The Analyst
3 Data Analyst Salary | 100k with No Experience
Data Analyst Salary | 100k with No Experience
Alex The Analyst
4 Working at a Big Company Vs Small Company | Told by a Fortune 500 Data Analyst
Working at a Big Company Vs Small Company | Told by a Fortune 500 Data Analyst
Alex The Analyst
5 Data Analyst Resume | Reviewing My Resume! | Fortune 500 Data Analyst
Data Analyst Resume | Reviewing My Resume! | Fortune 500 Data Analyst
Alex The Analyst
6 Data Analyst Resume | Complete Guide To Creating A Data Analyst Resume | Tips + Templates + Examples
Data Analyst Resume | Complete Guide To Creating A Data Analyst Resume | Tips + Templates + Examples
Alex The Analyst
7 Switching Careers to Become a Data Analyst | How I Made the Switch
Switching Careers to Become a Data Analyst | How I Made the Switch
Alex The Analyst
8 Working With a Recruiter to Land Your First Job as a Data Analyst | LinkedIn Recruiters
Working With a Recruiter to Land Your First Job as a Data Analyst | LinkedIn Recruiters
Alex The Analyst
9 Data Analyst Salary in 2020
Data Analyst Salary in 2020
Alex The Analyst
10 Data Analyst Resume | Reviewing YOUR Data Analyst Resumes!
Data Analyst Resume | Reviewing YOUR Data Analyst Resumes!
Alex The Analyst
11 Data Analyst Fact Check |  84k Average Starting Salary?? | The Career Force 2020 Data Analyst Salary
Data Analyst Fact Check | 84k Average Starting Salary?? | The Career Force 2020 Data Analyst Salary
Alex The Analyst
12 SQL Basics Tutorial For Beginners | Installing SQL Server Management Studio and Create Tables | 1/4
SQL Basics Tutorial For Beginners | Installing SQL Server Management Studio and Create Tables | 1/4
Alex The Analyst
13 SQL Basics Tutorial For Beginners | Select + From Statements | 2/4
SQL Basics Tutorial For Beginners | Select + From Statements | 2/4
Alex The Analyst
14 SQL Basics Tutorial For Beginners | Where Statement | 3/4
SQL Basics Tutorial For Beginners | Where Statement | 3/4
Alex The Analyst
15 SQL Basics Tutorial For Beginners | Group By + Order By Statements | 4/4
SQL Basics Tutorial For Beginners | Group By + Order By Statements | 4/4
Alex The Analyst
16 Day in the Life of a Data Analyst | Fortune 500 Edition
Day in the Life of a Data Analyst | Fortune 500 Edition
Alex The Analyst
17 Intermediate SQL Tutorial | Inner/Outer Joins | Use Cases
Intermediate SQL Tutorial | Inner/Outer Joins | Use Cases
Alex The Analyst
18 Intermediate SQL Tutorial | Unions | Union Operator
Intermediate SQL Tutorial | Unions | Union Operator
Alex The Analyst
19 Intermediate SQL Tutorial | Case Statement | Use Cases
Intermediate SQL Tutorial | Case Statement | Use Cases
Alex The Analyst
20 Intermediate SQL Tutorial | Having Clause
Intermediate SQL Tutorial | Having Clause
Alex The Analyst
21 Intermediate SQL Tutorial | Updating/Deleting Data
Intermediate SQL Tutorial | Updating/Deleting Data
Alex The Analyst
22 Day in the Life of a Data Analyst | Fortune 500 Edition (During Quarantine)
Day in the Life of a Data Analyst | Fortune 500 Edition (During Quarantine)
Alex The Analyst
23 Data Analyst Interview Questions | Phone + In-Person Interview Questions
Data Analyst Interview Questions | Phone + In-Person Interview Questions
Alex The Analyst
24 SQL Interview Questions and Answers for Beginners | Data Analyst Interview Questions
SQL Interview Questions and Answers for Beginners | Data Analyst Interview Questions
Alex The Analyst
25 Data Analyst Interview Questions | What To Say vs What NOT To Say
Data Analyst Interview Questions | What To Say vs What NOT To Say
Alex The Analyst
26 Data Analyst Interviews | Salary Negotiation
Data Analyst Interviews | Salary Negotiation
Alex The Analyst
27 Data Analyst Q&A LIVE
Data Analyst Q&A LIVE
Alex The Analyst
28 Intermediate SQL Tutorial | Aliasing
Intermediate SQL Tutorial | Aliasing
Alex The Analyst
29 Data Scientist vs Data Analyst | Which Is Right For You?
Data Scientist vs Data Analyst | Which Is Right For You?
Alex The Analyst
30 Best Online Courses for Data Analysts
Best Online Courses for Data Analysts
Alex The Analyst
31 Best Free Online Courses for Data Analysts
Best Free Online Courses for Data Analysts
Alex The Analyst
32 Data Analyst vs Business Analyst | Which Is Right For You?
Data Analyst vs Business Analyst | Which Is Right For You?
Alex The Analyst
33 Scraping Data Off Twitter Using Python | Twitterscraper + NLP + Data Visualization
Scraping Data Off Twitter Using Python | Twitterscraper + NLP + Data Visualization
Alex The Analyst
34 Data Analyst Question and Answer | Answering Your YouTube Questions
Data Analyst Question and Answer | Answering Your YouTube Questions
Alex The Analyst
35 What Does a Data Analyst Actually Do?
What Does a Data Analyst Actually Do?
Alex The Analyst
36 Data Analyst Bootcamps | Are They Worth It?
Data Analyst Bootcamps | Are They Worth It?
Alex The Analyst
37 Top 5 Reasons Not to Become a Data Analyst
Top 5 Reasons Not to Become a Data Analyst
Alex The Analyst
38 Data Analyst Career Path | How to Become a Data Analyst + What to Do Next
Data Analyst Career Path | How to Become a Data Analyst + What to Do Next
Alex The Analyst
39 Live Data Analyst Q&A #3
Live Data Analyst Q&A #3
Alex The Analyst
40 Top 5 Reasons Not to Lie on Your Resume
Top 5 Reasons Not to Lie on Your Resume
Alex The Analyst
41 The Hiring Process from an Interviewer's Perspective | Alex The Analyst Show | Episode 1
The Hiring Process from an Interviewer's Perspective | Alex The Analyst Show | Episode 1
Alex The Analyst
42 Top 5 Reasons Data Analytics is a Good Career Choice
Top 5 Reasons Data Analytics is a Good Career Choice
Alex The Analyst
43 How I Changed Careers to Become a Data Analyst | Alex The Analyst Show | Episode 2
How I Changed Careers to Become a Data Analyst | Alex The Analyst Show | Episode 2
Alex The Analyst
44 Top 5 Reasons You'll Be a Good Data Analyst
Top 5 Reasons You'll Be a Good Data Analyst
Alex The Analyst
45 Self Taught vs Boot Camp vs Degree | Alex The Analyst Show | Episode 3
Self Taught vs Boot Camp vs Degree | Alex The Analyst Show | Episode 3
Alex The Analyst
46 Covid and the Data Analyst Job Market | Alex The Analyst Show | Episode 4
Covid and the Data Analyst Job Market | Alex The Analyst Show | Episode 4
Alex The Analyst
47 Data Analyst Expectations vs Reality
Data Analyst Expectations vs Reality
Alex The Analyst
48 Imposter Syndrome in Tech | Alex The Analyst Show | Episode 5
Imposter Syndrome in Tech | Alex The Analyst Show | Episode 5
Alex The Analyst
49 Top 10 Coursera Courses for Data Analysts
Top 10 Coursera Courses for Data Analysts
Alex The Analyst
50 Working at a Startup vs Fortune 500 Company | Alex The Analyst Show | Episode 6
Working at a Startup vs Fortune 500 Company | Alex The Analyst Show | Episode 6
Alex The Analyst
51 Data Analyst Certifications | Are They Worth It? | Alex The Analyst Show | Episode 7
Data Analyst Certifications | Are They Worth It? | Alex The Analyst Show | Episode 7
Alex The Analyst
52 Top 10 Udemy Courses for Data Analysts
Top 10 Udemy Courses for Data Analysts
Alex The Analyst
53 Asking My Wife Your Questions About Me | Alex The Analyst Show | Episode 8
Asking My Wife Your Questions About Me | Alex The Analyst Show | Episode 8
Alex The Analyst
54 Data Analyst Q&A LIVE #4
Data Analyst Q&A LIVE #4
Alex The Analyst
55 Data Analyst Skills Path | What Skills You NEED to Know
Data Analyst Skills Path | What Skills You NEED to Know
Alex The Analyst
56 What is Analytics Consulting? With John Ariansen | Alex The Analyst Show | Episode 9
What is Analytics Consulting? With John Ariansen | Alex The Analyst Show | Episode 9
Alex The Analyst
57 Solving LeetCode SQL Interview Questions | Part 1/3
Solving LeetCode SQL Interview Questions | Part 1/3
Alex The Analyst
58 What is No Code Analytics? | Alex The Analyst Show | Episode 10
What is No Code Analytics? | Alex The Analyst Show | Episode 10
Alex The Analyst
59 Top 3 Tips on Using LinkedIn to Land a Job
Top 3 Tips on Using LinkedIn to Land a Job
Alex The Analyst
60 Completely Unrealistic Jobs on LinkedIn | Alex The Analyst Show | Episode 11
Completely Unrealistic Jobs on LinkedIn | Alex The Analyst Show | Episode 11
Alex The Analyst

This video teaches how to use Azure SQL Databases for data analytics, including creating and configuring databases, accessing and connecting to applications, and monitoring performance and cost control. It covers various tools and concepts, providing a comprehensive understanding of Azure SQL Databases and their applications in data analytics.

Key Takeaways
  1. Create a SQL database in Azure
  2. Choose a server and authentication method
  3. Configure the database for development or production environment
  4. Choose a pricing tier and configuration
  5. Configure access and connect to application
  6. Connect to server using server name, Windows authentication, and Microsoft Entra ID
  7. Use Azure Data Studio for database management
  8. Configure public network access
  9. Add client IP V4 address
  10. Create a new table
💡 Azure SQL Databases can be used for data analytics, and monitoring performance and cost control is crucial for optimizing database performance and reducing costs.

Related Reads

📰
Classroom vs Online Data Science Training in Hyderabad | Coding MastersClassroom vs Online Data…
Learn why data science is in high demand and how to get trained in Hyderabad, whether through classroom or online modes, to boost your career
Medium · Data Science
📰
SciDraw Alternative: Paper Banana for Scientific Figures
Discover Paper Banana as a SciDraw alternative for creating scientific figures, and learn how to use it for your data visualization needs
Medium · Data Science
📰
“Missão: Risco da Carteira”.
Learn to assess portfolio risk using data science techniques and tools
Medium · Data Science
📰
When Ten Analysts Agree and Two Are Right — What Numbers 13 Knew About Groupthink
Learn how to identify and avoid groupthink in analysis and decision-making, and why it's crucial for accurate threat assessments
Medium · AI
Up next
This could be the most perfect data frontend
Matt Williams
Watch →