A
Ana Lindt
Hi,
When I try to dataAdapter.Update() I always get a "Syntax error in INSERT
INTO statement". If i take a look at the InsertCommand or cmdInsert property
of the dataAdapter, it's just fine:
"INSERT INTO NEMT_REPORTS (PLANT_ID, ACCOUNTABLE, SUBMITED, YEAR,
KPI_ENERGY, KPI_WATER, KPI_WASTEWATER, KPI_GWP, KPI_ENERGYTCOP,
KPI_ENERGYCOST) values (@PLANT_ID, @ACCOUNTABLE, @SUBMITED, @YEAR,
@KPI_ENERGY, @KPI_WATER, @KPI_WASTEWATER, @KPI_GWP, @KPI_ENERGYTCOP,
@KPI_ENERGYCOST)"
So my question is: How can I display the *real* sql command that the
dataAdapter actualy executes against the database?
Thanks for any advice,
Ana L.
When I try to dataAdapter.Update() I always get a "Syntax error in INSERT
INTO statement". If i take a look at the InsertCommand or cmdInsert property
of the dataAdapter, it's just fine:
"INSERT INTO NEMT_REPORTS (PLANT_ID, ACCOUNTABLE, SUBMITED, YEAR,
KPI_ENERGY, KPI_WATER, KPI_WASTEWATER, KPI_GWP, KPI_ENERGYTCOP,
KPI_ENERGYCOST) values (@PLANT_ID, @ACCOUNTABLE, @SUBMITED, @YEAR,
@KPI_ENERGY, @KPI_WATER, @KPI_WASTEWATER, @KPI_GWP, @KPI_ENERGYTCOP,
@KPI_ENERGYCOST)"
So my question is: How can I display the *real* sql command that the
dataAdapter actualy executes against the database?
Thanks for any advice,
Ana L.