I want to create trusted connections to a SQL Server database, using pymssql. Given that that code is going to be shared though, I don't want users entering their usernames, or passwords. I've found documentation that has conflicting information about how to achieve this.
What I want to be able to do is something like
engine = create_engine('mssql+pymssql://<Server>/<Database>?trusted=True')
Some things have said use trusted_connection=yes, others say use trusted=True. Neither of these options is working for me. Each time I try to use the engine I get an error saying that trusted
or trusted_connection
is an unexpected keyword argument.
I'm using SQLAlchemy version 1.0.9, and pymssql version 2.1.1.