#/usr/bin/python

import mx.ODBC.unixODBC as odbc
import numpy as np

# Connect to the database
db = odbc.DriverConnect("DSN=ramses17;UID=wsaro;PWD=wsaropw")

# Initiate the Cursor
cursor = db.cursor()

# Execute the Query
cursor.execute("SELECT name FROM sys.databases")

# Get the results
rows = cursor.fetchall()

for row in rows:
	print(row)

# Close the database connection
db.close()


