I am using SQLalchemy with pyodbc to connect to a SQL server. I can connect using "Windows Authentication":
create_engine('mssql+pyodbc://[ServerName]/[DatabaseName]',echo=True)
That is fine but when I try to login (SQL server authentication) it fails:
create_engine('mssql+pyodbc://[User]:{Password]@[ServerName]/[DatabaseName]',echo=True)
- Is my code correct? Am I missing a setting?
- Is there a way of listing database users to check the names?