I would like to open an OleDbConnection to an Excel file that’s in memory as a
FileStream. Does anyone know if this is possible and how to accomplish it?
Big picture I would like to pass the file bytes into a .NET CLR Stored Procedure and extract the data. Perhaps there’s a better way to do this that I’ve not considered.
Thanks in advance.
The VSTO solution JP offers is definitely viable. However, if you really want to use OleDb and some SQL, take a look at this artcile: it’s a MS knowledge base article that describes how to import data from excel into SQLSever using OleDb.