1

I would like to modify connection strings for excel very much like how SqlConnectionStringBuilder works.

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\MyExcelFile.xlsx;Extended Properties="EXCEL 12.0 XML;HDR=YES";

I tried to use SqlConnectionStringBuilder but it's not working. It says "keyword not supported".

How do I modify this kind of connection string with ease?

1

1 Answer 1

0

The easiest place to change this is Excel Connection Manager's ExcelFilePath property.

enter image description here

Source

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.