Skip to content

This project demonstrates how to interact with a SQL Server database using Python. It includes a Python class, `SQLServerDB`, that handles the database connections and CRUD (create, read, update, and delete) operations in the "Customers" table and error handling. User input is used to make it interactive and versatile for working with various data.

Notifications You must be signed in to change notification settings

adityarana99/SQL-Server-CRUD-Operations-with-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL-Server-CRUD-Operations-with-Python

Overview: This project demonstrates how to interact with a SQL Server database using Python. It includes a Python class, SQLServerDB, that handles the database connections and CRUD operations. The class allows the user to create, read, update, and delete records in the "Customers" table of the specified SQL Server database. User input is used to drive the CRUD operations, making it interactive and versatile for working with various data.

Features:

  • Establishing a connection to SQL Server using pyodbc.
  • Implementing CRUD operations (Create, Read, Update, Delete) with user input.
  • Providing error handling for robustness.
  • Demonstrating database interaction in a Python project.

Install Required Libraries before running code: Ensure you have pyodbc installed. You can install it using pip in terminal:

pip install pyodbc

About

This project demonstrates how to interact with a SQL Server database using Python. It includes a Python class, `SQLServerDB`, that handles the database connections and CRUD (create, read, update, and delete) operations in the "Customers" table and error handling. User input is used to make it interactive and versatile for working with various data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages