Search code examples
pythonsql-serverpymssql

How to pass connection parameter "ApplicationIntent=ReadOnly" when using pymssql


I only have readonly access to a SQL Server db. How do I pass connection parameter "ApplicationIntent=ReadOnly" when using pymssql to connect to the database? If pymssql doesn't support it, is there any other python library that I can use?


Solution

  • Because pymssql is dependent on FreeTDS You really need to address the connection parameters to your MS-SQL server used by FreeTDS

    Because ApplicationIntent is listed in the freetds user guide as an option you should be able to use it.