An Azure relational database service.
Hi @RCS
It’s super easy to spin up a little Azure SQL sandbox on your home laptop for SSMS playtime. Here’s a quick roadmap:
Get an Azure subscription
- If you don’t already have one, grab a free trial at azure.microsoft.com/free.
Create a logical server + single database in the portal
- In the Azure portal, search for SQL databases and click + Create.
- On the Basics tab: • Subscription: pick your subscription • Resource group: create a new one (or use an existing) • Database name: something like MyPracticeDB • Server: click Create new, give your server a globally unique name, set an admin login and strong password
- For Compute + storage, pick a small tier (Basic/Standard or Serverless General Purpose – the free tier even gives you some free credits for vCore seconds and storage)
- On Networking, choose Public endpoint, toggle Add current client IP to Yes (this whitelists your home IP), leave Allow Azure services off for tighter security
- Under Additional settings, pick Sample as your Data source so you get an AdventureWorksLT sample loaded automatically
- Hit Review + create, then Create.
Connect using SQL Server Management Studio (SSMS)
- Open SSMS on your laptop
- In the Connect to Server dialog: • Server type: Database Engine • Server name:
<your-server-name>.database.windows.net• Authentication: SQL Server Authentication • Login: the admin you set up • Password: the one you chose - Click Connect and you’ll see your new database along with the sample tables.
Load your own data
- Easiest: right-click your database in SSMS > Tasks > Import Data and walk through the wizard (CSV, Excel, etc.)
- Or use T-SQL bulk commands, e.g.: BULK INSERT dbo.YourTable FROM 'C:\Temp\YourData.csv' WITH (FIELDTERMINATOR = ',', FIRSTROW = 2);
- If you prefer the command line, the bcp utility works great: bcp dbo.YourTable in C:\Temp\YourData.csv -S -d MyPracticeDB -U yourAdmin -P yourPassword -c -t","
That’s it! You’re up and running with a fully managed Azure SQL database you can query, code against, and load data into using SSMS. Have fun practicing!
References:
https://learn.microsoft.com/azure/azure-sql/database/single-database-create-quickstart#create-a-single-database https://learn.microsoft.com/azure/azure-sql/database/firewall-create-server-level-portal-quickstart#create-a-server-level-ip-based-firewall-rule
https://learn.microsoft.com/azure/azure-sql/database/connect-query-ssms
https://learn.microsoft.com/azure/azure-sql/load-from-csv-with-bcp?view=azuresql#3-load-the-data