Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Syntax error: expected something between. PLEASE HELP

Syntax error: expected something between. PLEASE HELP

Syntax error: expected something between. PLEASE HELP

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
    SCHEMA *
        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
    SCHEMA W_0_s_Queue_Transfer
        VARCHAR UserName,
        VARCHAR UserPassword,
        VARCHAR SelectStmt,
        VARCHAR PrivateLogName,
        VARCHAR DSNName,
        VARCHAR ConnectString,
        VARCHAR TruncateData

            '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);'

            UserName = @TeradataDestinationUser,
            UserPassword = @TeradataDestinationPassword,
            LogTable = 'databasename.tablename_log',
            TargetTable = 'databasename.tablename_Queue',
            TdpId = 'TdpId'

            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'

RE: Syntax error: expected something between. PLEASE HELP

It appears that Queue is a reserve word, but it's been defined as a column name. Can the column name be changed?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close