This is a sample project for connecting SQL database to python
In this project we try to extract data using python from SQL server database
Microsoft SQL server pyodbc library of python
You should have A IP address of your remote sql server and you just have to put this IP address in the db_sript along with your login credentials.