Hi,
This repository contains template for the connection between python and mssql.
Before starting connection go thought to do list.
- Connect to MSSQL database server using MSSQL Server Management Studio.
- Create New user and assign default database to the user.
- Change Authentication mode to Windows and SQL User.
- Make sure SQL services are running in the windows machine.
- Change firewall rule, add incoming rule and grant access to the SQL server on port 1433.
- Try telnet connection from remote machine on port 1433
- Try to connect to the MSSQL server using newly created server.
- Use Freetds and tsql to check database connection.
- Run following command to test connection a. tsql -H -p -U
- Once the connection is successful ready to use template.
Required Software Packages.
- pymssql
- freeds