import pytds conn = pytds.connect('server', 'database', 'user', 'password') as conn: SQL_Query = pd.read_sql_query('''SELECT * FROM ApplicationDB.jkk.dataSQLRaw''', conn) data = pd.DataFrame(SQL_Query) data