Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error: expected something between. PLEASE HELP

Status
Not open for further replies.

elbebo

MIS
Dec 21, 2011
1
US
I am getting the following error when trying to transport data from a SQL server to teradata:
PT10508: RDBMS error 3706: Syntax error: expected something between ',' and the 'Queue' keyword

This is the transport script


DEFINE JOB Queue_Transfer
(
DEFINE OPERATOR W_1_o_Queue_Transfer
TYPE LOAD
SCHEMA *
ATTRIBUTES
(
VARCHAR UserName,
VARCHAR UserPassword,
VARCHAR LogTable,
VARCHAR TargetTable,
INTEGER BufferSize,
INTEGER ErrorLimit,
INTEGER MaxSessions,
INTEGER MinSessions,
INTEGER TenacityHours,
INTEGER TenacitySleep,
VARCHAR AccountID,
VARCHAR DateForm,
VARCHAR ErrorTable1,
VARCHAR ErrorTable2,
VARCHAR NotifyExit,
VARCHAR NotifyExitIsDLL,
VARCHAR NotifyLevel,
VARCHAR NotifyMethod,
VARCHAR NotifyString,
VARCHAR PauseAcq,
VARCHAR PrivateLogName,
VARCHAR TdpId,
VARCHAR TraceLevel,
VARCHAR WorkingDatabase
);

DEFINE SCHEMA W_0_s_Queue_Transfer
(
objid INTEGER,
dev INTEGER,
x_id_number VARCHAR(40),
x_queue VARCHAR(80),
x_start_date INTDATE,
x_end_date INTDATE,
x_case_queue2case INTEGER,
x_case_queue2subc INTEGER
);

DEFINE OPERATOR W_0_o_Queue_Transfer
TYPE ODBC
SCHEMA W_0_s_Queue_Transfer
ATTRIBUTES
(
VARCHAR UserName,
VARCHAR UserPassword,
VARCHAR SelectStmt,
VARCHAR PrivateLogName,
VARCHAR DSNName,
VARCHAR ConnectString,
VARCHAR TruncateData
);

APPLY
(
'INSERT INTO databasename.tablename_Queue (objid,dev,Id_Number,Queue,Start_Date,End_Date,Case_Queue,Subcase_Queue) VALUES :)objid,:dev,:x_id_number,:x_queue,:x_start_date,:x_end_date,:x_case_queue2case,:x_case_queue2subc);'
)
TO OPERATOR
(
W_1_o_Queue_Transfer[3]

ATTRIBUTES
(
UserName = @TeradataDestinationUser,
UserPassword = @TeradataDestinationPassword,
LogTable = 'databasename.tablename_log',
TargetTable = 'databasename.tablename_Queue',
TdpId = 'TdpId'
)
)
SELECT * FROM OPERATOR
(
W_0_o_Queue_Transfer[1]

ATTRIBUTES
(
UserName = @OdbcSourceUser,
UserPassword = @OdbcSourcePassword,
SelectStmt = 'SELECT objid,dev,x_id_number,x_queue,x_start_date,x_end_date,x_case_queue2case,x_case_queue2subc FROM databasename.dbo.table_x_case_queue;',
DSNName = 'DSNNAME'
)
);
);
 
It appears that Queue is a reserve word, but it's been defined as a column name. Can the column name be changed?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top