3

I would like to develop an apps using python/webapp2, which is required SQL Azure database hosted in Azure Cloud. How can i connect python to SQL Azure?

Danny Hong
  • 1,474
  • 13
  • 21

1 Answers1

5

Try pyodbc with FreeTDS and format your connection string as explained in this answer:

TDSVER=8.0 tsql -H XXXXXXXX.database.windows.net -U Username -D DatabaseName -p 1433 -P Password

Also make sure that you configure SQL Azure correctly in order to allow your IP to access the database.

Community
  • 1
  • 1
Sandrino Di Mattia
  • 24,739
  • 2
  • 60
  • 65