Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
Hi there,
We're new to the DAP CLI (for MSSQL) and we managed to get the initdb and syncdb working with MSSQL using SQL Authentication. However does anyone managed to connect to the MSSQL with Windows Authentication and if so, how should the connection string be looked like?
Many thanks in advance!
WL
Hello @wa22!
Great question! DAP CLI uses pysqlsync to connect to various databases, and this dependency is using pyodbc to connect MSSQL. We don't test your use case, only ODBC based connections.
So I have just searched around for solutions and I have ended up on this page: https://stackoverflow.com/questions/16515420/connecting-to-ms-sql-server-with-windows-authentication...
I haven't verified if it works, nor support it officially but it might help you.
Hello, thanks for your reply. Did you mean I should specify the connection string like below?
cnxn = pyodbc.connect(r'Driver=SQL Server;Server=.\SQLEXPRESS;Database=myDB;Trusted_Connection=yes;')
The question is the DAP CLI accepts "--connection-string mssql://username:password@servername:port/instancename", I couldn't relate the two different string to get around it ...
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In