I fail to execute an SQL query with a with clause via ADODB and Oracle.
That is, the following snippet works:
Dim cn As ADODB.connection Set
Above method did not work for me.
Adding ";" prior to WITH keyword resolved the issue.
Dim sql As String sql = ";with w as (select 'foo' x from dual) select x from w"
rs.Open sql, cn