Ive tried
import pyodbc
conn = pyodbc.connect('DSN=<dsn>;UID=<uid>@<host>;PWD=<pwd>')
with my credentials but just get an error:
pyodbc.Error: ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found, and no default driver specified (0) (SQLDriverConnect)')
or when I try
TDSVER=8.0 tsql -H XXXXXXXX.database.windows.net -U Username -D DatabaseName -p 1433 -P
Password
I get
Error 20002 (severity 9):Adaptive Server connection failed
There was a problem connecting to the server
What's the easiest/best way to access an SqlAzure database from an azure VM?