Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

python connection to remote SQL server

import pyodbc
cnxn = pyodbc.connect(DRIVER='{SQL Server}',SERVER='***server ip address**',DATABASE='**cataloguename**',UID='**myusername**',PWD='**mypassword**')
cursor = cnxn.cursor()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #connection #remote #SQL #server
ADD COMMENT
Topic
Name
3+9 =