Skip to content

Instantly share code, notes, and snippets.

@Akasurde
Created July 6, 2023 19:09
Show Gist options
  • Save Akasurde/b848017c027c71e6e5fd80d5f0f01a8b to your computer and use it in GitHub Desktop.
Save Akasurde/b848017c027c71e6e5fd80d5f0f01a8b to your computer and use it in GitHub Desktop.
import pymssql
login_user = '' # Replace username
login_password = '' # Replace with password
login_querystring = '' # Replace this with host:port
db = '' # Replace database
conn = pymssql.connect(
user=login_user,
password=login_password,
host=login_querystring,
database=db
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment