Connect to MS SQL Server running in host computer, from script running in Docker

Viewed 17

Now, i'm connecting with my MS SQL Server DB with:

pyodbc.connect(r'DRIVER={SQL Server Native Client 10.0};SERVER=myHostPCname\myDBname;Trusted_Connection=yes')

But now, i want to put this script inside a Docker container. What should i choose in order to connect to the DB from the script running inside Docker, to the MS SQL Server DB running at the host?

0 Answers
Related