Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Table Output: Identity Column Value

$
0
0
Hi Team,

I am trying to transfer data from 'SQL server' to 'Sybase' database for a table which has 'identity column' in it.

Since i want the identity column values also to be inserted in the target, i have created a transformation with the following steps:

1. 'Execute SQL script' with 'Set identity inert 'table1' on'.
2. 'Table Input' from Sql server.
3. 'Table Output' to Sybase.
4. 'Execute SQL script' with 'Set identity inert table1 off'.

Also i have made the transaction 'Transformational'.

Is 'Step 4' ( setting identity insert to 'OFF' again) compulsory? Even without Step4 , When i execute the transformation is working fine.
( I am facing problems if i have 'Step 4' sometimes as i get error 'cannot insert values into identity column set to off'.)

Please let me know is this the correct way to insert values into the identity column of a table.?

Thank you.

Naseer.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



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