0

I am trying to attach a database through python pyodbc and then save to dataframe. I found and a solution here How to open a SQL Server .mdf file with Python (pandas)

But how can I change the name of the attaching database? So when I am attaching the database based on the code

r'AttachDbFileName=C:\Users\Gord\Desktop\zzz.mdf;'

am I also able to set the name of the database?

Thanks a lot!

webmourek
  • 59
  • 8

0 Answers0