ERROR: IDENTITY_INSERT is set to OFF.

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
gooogle
Participant
Posts: 42
Joined: Tue Feb 23, 2010 3:40 pm

ERROR: IDENTITY_INSERT is set to OFF.

Post by gooogle »

I am doing SQL server table from Database A
to SQl server table in Database B

Getting this warning and job gets aborted.

DataStage][SQL Client][ODBC][IBM (DataDirect OEM)][ODBC SQL Server Driver][SQL Server]Cannot insert explicit value for identity column in table 'STTLMNT_PRCS' when IDENTITY_INSERT is set to OFF.

Any hints ?

Thanks
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Two posts turned up when i searched with keywords "Cannot insert explicit value for identity column in table". Check if that helps you
You are the creator of your destiny - Swami Vivekananda
gooogle
Participant
Posts: 42
Joined: Tue Feb 23, 2010 3:40 pm

Post by gooogle »

I changed it to
SET IDENTITY_INSERT STTLMNT_PRCS ON;

but I am getting the exact same error !
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You changed what "it"? And where exactly did you make this change?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply