I am very new to OleDB stuff. I am just making changes to someone else's .NET project, and they're using OleDB when creating a data report file.
Currently, a local data file is being passed to the OleDB as a data source (part of the OleDB connection string). So the connection string looks something like this: "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\SomeFolder\SomeFile;..."
However, I need to have the Data Source
be a file I have in my Azure Blob. What I tried is setting the connection string's Data Source
to something like: https://azure-storageacc-name.blob.core.windows.net/blobcontainername/myfile.xlsx
, but when I try to pass a connection string having this Data Source, I get an error when I try to open oleDBConnection:
System.Data.OleDb.OleDbException: 'Failure creating file.'
connection = new OleDbConnection(connectionString);
connection.Open() //<-- WHERE THE ERROR OCCURS;
Does somebody know if it is possible to pass a connection string to oleDB where Data Source is an Azure Blob source? If yes, how would I do it? Thanks!