Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Create a SQL database using either Azure SQL or SQL Server.
pyodbc
package from PyPI.The samples in this next section only work with the AdventureWorks schema, on either Microsoft SQL Server or Azure SQL Database.
Important
Don't forget to get the credentials for the database you create.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Provision an Azure SQL database to store application data - Training
Find out what makes Azure SQL Database a good choice for your relational database, how to create the database from the portal and connect with Azure Cloud Shell.
Certification
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Documentation
Python SQL Driver - pyodbc - Python driver for SQL Server
This guide describes installing Python, the ODBC Driver for SQL Server, and pyodbc. The corresponding sample code shows how to connect to and interact with a SQL database.
Step 3 - Connecting to SQL using pyodbc - Python driver for SQL Server
Step 3 is a PoC, which shows how you can connect to SQL Server using Python and pyodbc. The basic examples demonstrate selecting and inserting data.
Python driver for SQL Server - Python driver for SQL Server
Connect to a SQL Database using one of the available Python drivers on your preferred operating system.