Hi,
I am trying to read data from a table which has column names defined as [Original Cost] on a source system. I am using an ODBC Connector Stage to write a select query like 'Select A."Original Cost" as Original_Cost from A". But I am getting an error for incorrect syntax.
How can we write a SQL Select query in datastage to read this column?
Reading Column names with spaces in between
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 20
- Joined: Sat Aug 09, 2008 1:53 pm
-
- Participant
- Posts: 20
- Joined: Sat Aug 09, 2008 1:53 pm
-
- Participant
- Posts: 20
- Joined: Sat Aug 09, 2008 1:53 pm
Name containg #
I have another problem now. The Column name is 'Customer #'.
I am reading it as
SELECT [Customer #] as Customer from XXX
in the ODBC Connector stage. But on running the job, the job aborts giving the error thet 'Execute failed don the Select statement'.
Any workaround for this>?
I am reading it as
SELECT [Customer #] as Customer from XXX
in the ODBC Connector stage. But on running the job, the job aborts giving the error thet 'Execute failed don the Select statement'.
Any workaround for this>?