I am using pyodbc
library to connect my Python program to a SQL Server database. I want to construct Connection String using a verbatim string as under.
connection_string = f"DRIVER={SQL SERVER};SERVER={server};Database={database};Trusted_Connection=yes;App={app}"
Escaping {
by \{
did not work.
Also making it both verbatim and raw by putting fr
instead of f
at the beginning of literal did not work.
Help please