The code is very basic and self-explanatory. The main code can be found in main.py. Here is what is happening:
- The following constants are set:
- Azure SQL database userid.
- Azure SQL database password.
- Azure SQL database server name (fully qualified).
- Azure SQL database name (if it does not exit, pandas will create it).
- Azure SQL database table name.
- ODBC Driver, there are several guides out there on how to set this up on different OS's.
- Building the right connectionstring for azure sql and the odbc driver.
- Read dummy data from CSV into a dataframe.
- Create SQL Alchemy engine and write data to SQL.
- Read data from SQL back into a dataframe.
You should replace the constants with your own values.