sure!
pip install jaydebeapi pymssql
import jaydebeapi
import pymssql
pymssql.connect(server='xxxxxxxxxxxxxxxxx.database.windows.net',
user='sqladmin@xxxxxxxxxxxxxxxxx',
password='1234',
database="yyyyyyyyyyyyyyyyy",
port='1433',
)
pymssql.connect(server='xxxxxxxxxxxxxxxxx.database.windows.net',
user='sqladmin',
password='1234',
database="yyyyyyyyyyyyyyyyy",
port='1433',
)
jaydebeapi.connect('com.microsoft.sqlserver.jdbc.SQLServerDriver',
'jdbc:sqlserver://xxxxxxxxxxxxxxxxx.database.windows.net:1433;database=yyyyyyyyyyyyyyyyy',
['sqladmin', '1234'])
bellow, outputs:
OperationalError: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (xxxxxxxxxxx.database.windows.net)\nNet-Lib error during Connection refused (111)\nDB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (xxxxxxxxxxxxx.database.windows.net)\nNet-Lib error during Connection refused (111)\n')
same for the second call.
and last, for jaydebeapi
TypeError: Class com.microsoft.sqlserver.jdbc.SQLServerDriver is not found