OK, so I created a report with an ODBC entry that pointed to a database named "XXX". I populated the report with data fields and I have a SQL query that says something like:
SELECT
ACC_TRANS."CHARGE_NO",
FROM
{ oj ((("XXX"."dbo"."ACC_TRANS" ACC_TRANS INNER JOIN "XXX"."dbo"."CHRG_DETAIL" CHRG_DETAIL ON
. . . . . and so on
The key part is the "XXX" database qualifier. I must get this changed to a different name. In reality, the ODBC should have pointed to database "ABC".
If I remove the table, all my fields drop off the report. I'm told that if I edit the SQL statement directly, then it will not be updated in the future as new tables or fields are added.
Any thoughts on how to change this?
SELECT
ACC_TRANS."CHARGE_NO",
FROM
{ oj ((("XXX"."dbo"."ACC_TRANS" ACC_TRANS INNER JOIN "XXX"."dbo"."CHRG_DETAIL" CHRG_DETAIL ON
. . . . . and so on
The key part is the "XXX" database qualifier. I must get this changed to a different name. In reality, the ODBC should have pointed to database "ABC".
If I remove the table, all my fields drop off the report. I'm told that if I edit the SQL statement directly, then it will not be updated in the future as new tables or fields are added.
Any thoughts on how to change this?