Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Is it possible to alter IDENTITY column?

$
0
0

Dear collegues,

 

I am running SAP HANA 1.00.72.00.388670 in HANA Cloud. I am trying to migrate the data from SQL Server to SAP HANA.

The IDENTITY value support is enabled. I am trying to import data from csv file to a table.

 

The table has such structure:

     CREATE COLUMN TABLE "TEST_IMPORT" ("ID" integer  NOT NULL primary key  generated always as IDENTITY, "VALUE" real NULL);

The peace of data has such view:

ID,VALUE

1,1

2,2

3,3

4,4

5,5

6,6

7,7

8,8

When I start an import process it asks me to define the dependences, as it requires to point the columns from my datafile to columns in the table. Certainly I cannot link a "ID" field because it is generated automatically.

 

I`ve tried another example.

Created a table:

     CREATE COLUMN TABLE "TEST_IMPORT" ("ID" integer  NOT NULL primary key, "VALUE" real NULL);

Imported data from previous example.

After I tried to alter the table to asign the IDENTITY property. However I`ve got an error:

     "Could not execute 'alter table "TEST_IMPORT" ALTER ("ID" integer NOT NULL primary key generated always as IDENTITY)' in 45 ms 753 µs .

     SAP DBTech JDBC: [7] (at 34): feature not supported: cannot modify column to identity column: ID: line 1 col 35 (at pos 34) "

 

How can I make that import?


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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