Link to home
Start Free TrialLog in
Avatar of Steve Olsen
Steve Olsen

asked on

Execute SQL Statement Against Record set or Array?

I understand its possible to execute a sql statement against an Excel sheet.  Is it possible to execute a sql statement against something that's in memory like a record set or array?
Avatar of Dean Chafee
Dean Chafee
Flag of United States of America image

Avatar of Steve Olsen
Steve Olsen

ASKER

Thanks Dean.

I read thru the info on OPENROWSET in the page linked to.  Here's one of the examples given:

SELECT * FROM OPENROWSET(
‘Microsoft.Jet.OLEDB.4.0’
,‘Excel 8.0;Database=C:\Temp\OrderValues.xls;HDR=YES’
,results) — “results” is a named range in excel

It appears they are using a sheet in Excel (or range within the sheet) as their source.  How would I go about using OPENROWSET against something in memory like an array or ADO recordset?

Steve
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial