Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Connecting to SqlAzure data source from python

$
0
0

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 d
efault 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?


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>