Skip to main content
Question

Excel as a DB not working for password protected sheet

  • May 22, 2024
  • 1 reply
  • 200 views

Forum|alt.badge.img+2

Hello,

I am trying to connect to excel sheet using excel as a DB operation. The excel file is password protected. is there a way to connect as a Db to password protected excel sheet? I have the password with me.

1 reply

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • May 22, 2024

Hi @Akshay.M2 ,

You can achieve that using the below connection string and mentioned password in the end.

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=YourExcelFile.xlsx;Extended Properties="Excel 12.0;HDR=YES;IMEX=1;Password=your_password";