Pull the sample databases straight into Microsoft Excel — no coding required. Three paths, all read-only: native SQL Server, an ODBC DSN, or the Web API via Power Query.
This guide is for analysts and finance professionals who want to work with real data in the tools they already know. You’ll connect Excel to the sample SQL Server databases three ways.
Excel is great for reporting, but if you're here to learn SQL, DBeaver is a free, open-source database tool that gives you a proper query workbench. Same credentials as below — see the DBeaver connection guide →
Direct database access (the native SQL Server and ODBC paths below) is read-only and uses a login that comes with your CPE Today enrollment. Prefer no login at all? The Web API path is completely open — anyone can use it free.
The direct-connection credentials are included — at no extra cost — with any CPE Today database or Excel course. Enroll once and you’ll receive the server login to use everywhere below, plus guided lessons that walk you through it step by step.
| Server | learnsql.cpetoday.com |
| Port | 1433 |
| Databases | northwind, classicmodels, adventureworks, contoso, dvdrental, world, … |
| Username & password | Included with your CPE Today course |
| Authentication | SQL Server login (not Windows) |
| Server | learnsql.cpetoday.com |
| Port | 3306 |
| Databases | acme, northwind, world, … |
| Username & password | Included with your CPE Today course |
This server automatically blocks IP addresses after repeated failed logins (it doubles as a security honeypot). If you mistype your password several times you may be temporarily blocked from the whole site — copy-paste it from your course materials to be safe.
The easiest path — needs no extra software on modern Excel (Microsoft 365, 2016+ on Windows).
learnsql.cpetoday.com,1433 (a comma before the port, not a colon).northwind. Leave Data Connectivity mode on Import. Click OK.Customers, Orders) and click Load.Click Transform Data instead of Load to open Power Query, where you can filter rows and pick columns before pulling data into the sheet — much faster on large tables.
Use this when you want a reusable named connection, or where the native connector isn’t available. Install Microsoft’s ODBC driver once, define a DSN (Data Source Name), then point Excel at it.
Download and install the Microsoft ODBC Driver 18 for SQL Server (free from Microsoft; Windows and macOS).
LearnSQL. Server: learnsql.cpetoday.com,1433. Click Next.northwind.LearnSQL DSN, click OK, supply the credentials again if asked.Many tools accept one directly:
Driver={ODBC Driver 18 for SQL Server};Server=learnsql.cpetoday.com,1433;Database=northwind;UID=your-username;PWD=your-password;Encrypt=yes;TrustServerCertificate=yes;
No database drivers and no credentials — Excel’s Power Query reads the open JSON API directly. This path is free for everyone and a great way to learn how APIs work while staying in Excel.
https://learnsql.cpetoday.com/api/mssql/northwind/Customers?limit=100
data list, convert it To Table, then expand the record columns.Use the Playground to construct your query — it shows the exact URL to paste here, plus the SQL behind it.
| Symptom | Fix |
|---|---|
| “Cannot connect” / timeout | Your network may block outbound port 1433 (or 3306). Try a different network, or use the Web API method (port 443/HTTPS) instead. |
| SSL / certificate error | Set Trust Server Certificate = Yes (DSN) or add TrustServerCertificate=yes to the connection string. Driver 18 encrypts by default and rejects the self-signed cert otherwise. |
| “Login failed for user” | Check the username/password and that you chose SQL Server authentication, not Windows. Repeated failures can get your IP blocked — wait, then copy-paste the exact credentials. |
| Wrong server format | SQL Server uses a comma for the port: learnsql.cpetoday.com,1433. A colon will fail. |
| Table name has spaces | Fine in Excel’s Navigator. In hand-written SQL, wrap it in brackets: [Order Details]. |