Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8357

Create Volatile tables in CR 2008 using Add command

$
0
0

Hi All,

 

I am facing issues in creating temp tables using "Add Command" . I am trying to connect to Teradata.

 

1.)

My query is  like

create volatile table A

As

(

Select Query

)

With data

On commit preserve rows.

 

The table A gets created but I am not able to see the command in my selected Tables pane.

Only when I try to re run the create script, CR throws an error as "Table A exists".

Is this how Crystal behaves or Am i missing something.

 

And in that case do i have to manually execute the sql everytime i logged in to a new session.

 

2) Is it possible to pass multiple statements in a single command.

 

Like all my DDLs for volatile tables in 1 Command and DML in other..

 

I tried combining multiple create volatile table statements in a add command.

But faced with the below error :-

 

Failed to Retreive data from database.

Details :25000:[Teradata][ODBC Teradata Driver][Teradata Database ] Only An ET or Null Statement is legal after  a DDL Statement. [Database Vendor Code : -3932]

 

Even after placing ';' / 'ET' after DDL statement also I am getting the same error.

 

Your expert advices needed.!!

 

Appreciate your help

 

Thanks,

Sherin


Viewing all articles
Browse latest Browse all 8357

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>