S
Sandy Hayman
Hi
I am having a bit of trouble with a couple of Pass Through queries I'm
trying to run.
Our back end is an Ingres database and the sql (via a querydef) I am trying
to run is:
"INSERT INTO cdbdba.ae_series
(ahecc,anzsic,bec,created_by,destination,id,measure,origin,periodicity,series_type,sitc,unit)
" & _
"SELECT ahecc,anzsic,bec,ae_series.created_by,index_details.id AS
newDestination, " & _
"ae_series.id,measure,origin,periodicity,series_type,sitc,unit " & _
"FROM ae_series INNER JOIN index_details ON ae_series.destination =
index_details.index_item_detail"
and
"INSERT INTO cdbdba.ae_commodity_data SELECT * from ae_commodity_data;"
I keep getting an [Intersolve-ODBC] error saying that the correct syntax is
"PREPARE INTO table_name ...."
The queries run ok in access so I figure the problem is in the sql when it
comes to writing directly to ingres. I checked their documentation but
couldn't find the problem. Any clues?
Thanks in advance
Sandy
I am having a bit of trouble with a couple of Pass Through queries I'm
trying to run.
Our back end is an Ingres database and the sql (via a querydef) I am trying
to run is:
"INSERT INTO cdbdba.ae_series
(ahecc,anzsic,bec,created_by,destination,id,measure,origin,periodicity,series_type,sitc,unit)
" & _
"SELECT ahecc,anzsic,bec,ae_series.created_by,index_details.id AS
newDestination, " & _
"ae_series.id,measure,origin,periodicity,series_type,sitc,unit " & _
"FROM ae_series INNER JOIN index_details ON ae_series.destination =
index_details.index_item_detail"
and
"INSERT INTO cdbdba.ae_commodity_data SELECT * from ae_commodity_data;"
I keep getting an [Intersolve-ODBC] error saying that the correct syntax is
"PREPARE INTO table_name ...."
The queries run ok in access so I figure the problem is in the sql when it
comes to writing directly to ingres. I checked their documentation but
couldn't find the problem. Any clues?
Thanks in advance
Sandy