Forum Discussion

serda's avatar
serda
Regular Visitor
9 years ago
Solved

Run a DDL statement before query getting data

Hi everybody!   I am trying to retrieve data directly against Teradata with the import mode and writing the SQL query in the optional textbox. Teradata raises an error because it can't run a DDL st...
  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    9 years ago

    Hi serda,

     

    As the error message stated, it's not supported to use DDL and DML at the same time when connecting to Teradata database in desktop. In my opinion, SELECT statement will return records based on the entered credential which used to connect to Taradata database. So we can just set permission for this account on Teradata database side, and write SELECT statement in the query box.

     

    In your scenario, please set proper permission for the account used to access Teradata database. Only write "SELECT * FROM the Table" in desktop query box.

     

    Best Regards,
    Qiuyun Yu